Changeset 78375 in vbox for trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_line.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_line.c
r69392 r78375 13 13 { 14 14 CRLineState *l = &ctx->line; 15 CRStateBits *sb = GetCurrentBits( );15 CRStateBits *sb = GetCurrentBits(ctx->pStateTracker); 16 16 CRLineBits *lb = &(sb->line); 17 17 … … 35 35 } 36 36 37 void STATE_APIENTRY crStateLineWidth( GLfloat width)37 void STATE_APIENTRY crStateLineWidth(PCRStateTracker pState, GLfloat width) 38 38 { 39 CRContext *g = GetCurrentContext( );39 CRContext *g = GetCurrentContext(pState); 40 40 CRLineState *l = &(g->line); 41 CRStateBits *sb = GetCurrentBits( );41 CRStateBits *sb = GetCurrentBits(pState); 42 42 CRLineBits *lb = &(sb->line); 43 43 44 44 if (g->current.inBeginEnd) 45 45 { 46 crStateError( __LINE__, __FILE__, GL_INVALID_OPERATION, "glLineWidth called in begin/end");46 crStateError(pState, __LINE__, __FILE__, GL_INVALID_OPERATION, "glLineWidth called in begin/end"); 47 47 return; 48 48 } … … 52 52 if (width <= 0.0f) 53 53 { 54 crStateError( __LINE__, __FILE__, GL_INVALID_VALUE, "glLineWidth called with size <= 0.0: %f", width);54 crStateError(pState, __LINE__, __FILE__, GL_INVALID_VALUE, "glLineWidth called with size <= 0.0: %f", width); 55 55 return; 56 56 } … … 61 61 } 62 62 63 void STATE_APIENTRY crStateLineStipple( GLint factor, GLushort pattern)63 void STATE_APIENTRY crStateLineStipple(PCRStateTracker pState, GLint factor, GLushort pattern) 64 64 { 65 CRContext *g = GetCurrentContext( );65 CRContext *g = GetCurrentContext(pState); 66 66 CRLineState *l = &(g->line); 67 CRStateBits *sb = GetCurrentBits( );67 CRStateBits *sb = GetCurrentBits(pState); 68 68 CRLineBits *lb = &(sb->line); 69 69 70 70 if (g->current.inBeginEnd) 71 71 { 72 crStateError( __LINE__, __FILE__, GL_INVALID_OPERATION,72 crStateError(pState, __LINE__, __FILE__, GL_INVALID_OPERATION, 73 73 "glLineStipple called in begin/end"); 74 74 return;
Note:
See TracChangeset
for help on using the changeset viewer.