Changeset 78375 in vbox for trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_hint.c
- 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_hint.c
r69392 r78375 13 13 { 14 14 CRHintState *h = &ctx->hint; 15 CRStateBits *sb = GetCurrentBits( );15 CRStateBits *sb = GetCurrentBits(ctx->pStateTracker); 16 16 CRHintBits *hb = &(sb->hint); 17 17 … … 41 41 } 42 42 43 void STATE_APIENTRY crStateHint( GLenum target, GLenum mode)43 void STATE_APIENTRY crStateHint(PCRStateTracker pState, GLenum target, GLenum mode) 44 44 { 45 CRContext *g = GetCurrentContext( );45 CRContext *g = GetCurrentContext(pState); 46 46 CRHintState *h = &(g->hint); 47 CRStateBits *sb = GetCurrentBits( );47 CRStateBits *sb = GetCurrentBits(pState); 48 48 CRHintBits *hb = &(sb->hint); 49 49 50 50 if (g->current.inBeginEnd) 51 51 { 52 crStateError( __LINE__, __FILE__, GL_INVALID_OPERATION,52 crStateError(pState, __LINE__, __FILE__, GL_INVALID_OPERATION, 53 53 "glHint called in Begin/End"); 54 54 return; … … 58 58 59 59 if (mode != GL_FASTEST && mode != GL_NICEST && mode != GL_DONT_CARE) { 60 crStateError( __LINE__, __FILE__, GL_INVALID_ENUM,60 crStateError(pState, __LINE__, __FILE__, GL_INVALID_ENUM, 61 61 "glHint(mode)"); 62 62 return; … … 91 91 } 92 92 else { 93 crStateError( __LINE__, __FILE__, GL_INVALID_ENUM,93 crStateError(pState, __LINE__, __FILE__, GL_INVALID_ENUM, 94 94 "glHint(target)"); 95 95 return; … … 104 104 } 105 105 else { 106 crStateError( __LINE__, __FILE__, GL_INVALID_ENUM,106 crStateError(pState, __LINE__, __FILE__, GL_INVALID_ENUM, 107 107 "glHint(target)"); 108 108 return; … … 117 117 } 118 118 else { 119 crStateError( __LINE__, __FILE__, GL_INVALID_ENUM,119 crStateError(pState, __LINE__, __FILE__, GL_INVALID_ENUM, 120 120 "glHint(target)"); 121 121 return; … … 124 124 #endif 125 125 default: 126 crStateError( __LINE__, __FILE__, GL_INVALID_ENUM,126 crStateError(pState, __LINE__, __FILE__, GL_INVALID_ENUM, 127 127 "glHint(target)"); 128 128 return;
Note:
See TracChangeset
for help on using the changeset viewer.