Changeset 78375 in vbox for trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_get.py
- Timestamp:
- May 3, 2019 9:51:02 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_get.py
r69392 r78375 146 146 header = """ 147 147 { 148 CRContext *g = GetCurrentContext( );148 CRContext *g = GetCurrentContext(pState); 149 149 150 150 if (g->current.inBeginEnd) 151 151 { 152 crStateError( __LINE__, __FILE__, GL_INVALID_OPERATION,152 crStateError(pState, __LINE__, __FILE__, GL_INVALID_OPERATION, 153 153 "glGet called in Begin/End"); 154 154 return; … … 162 162 { 163 163 #if 0 164 crStateError( __LINE__,__FILE__, GL_INVALID_OPERATION,164 crStateError(pState, __LINE__,__FILE__, GL_INVALID_OPERATION, 165 165 "Unimplemented glGet of a 'current' value" ); 166 166 #else 167 crStateCurrentRecover( );/* &g->current, &sb->current, g->bitID );*/167 crStateCurrentRecover(pState);/* &g->current, &sb->current, g->bitID );*/ 168 168 169 169 #endif … … 175 175 for rettype in types: 176 176 print('') 177 print('void STATE_APIENTRY crStateGet%sv( GLenum pname, %s *params )' % ( rettype, ctypes[rettype] ))177 print('void STATE_APIENTRY crStateGet%sv(PCRStateTracker pState, GLenum pname, %s *params )' % ( rettype, ctypes[rettype] )) 178 178 print(header) 179 179 … … 189 189 i += 1 190 190 except: 191 print('\t\t\tcrStateError( __LINE__,__FILE__,GL_INVALID_OPERATION, "Unimplemented glGet!");')191 print('\t\t\tcrStateError(pState, __LINE__,__FILE__,GL_INVALID_OPERATION, "Unimplemented glGet!");') 192 192 print("\t\t\tbreak;") 193 193 … … 216 216 i += 1 217 217 except: 218 print('\t\t\tcrStateError( __LINE__,__FILE__,GL_INVALID_OPERATION, "Unimplemented glGet!");')218 print('\t\t\tcrStateError(pState, __LINE__,__FILE__,GL_INVALID_OPERATION, "Unimplemented glGet!");') 219 219 if ext != 'OPENGL_VERSION_1_2': 220 220 print("\t\t\t}") 221 221 print("\t\t\telse {") 222 print('\t\t\t\tcrStateError( __LINE__,__FILE__,GL_INVALID_ENUM, "glGet%sv");' % rettype)222 print('\t\t\t\tcrStateError(pState, __LINE__,__FILE__,GL_INVALID_ENUM, "glGet%sv");' % rettype) 223 223 print("\t\t\t}") 224 224 print("\t\t\tbreak;") … … 227 227 228 228 print('\t\tdefault:') 229 print('\t\t\tcrStateError( __LINE__, __FILE__, GL_INVALID_ENUM, "glGet: Unknown enum: 0x%x", pname);')229 print('\t\t\tcrStateError(pState, __LINE__, __FILE__, GL_INVALID_ENUM, "glGet: Unknown enum: 0x%x", pname);') 230 230 print('\t\t\treturn;') 231 231 print('\t}')
Note:
See TracChangeset
for help on using the changeset viewer.