Changeset 26407 in vbox for trunk/src/VBox/GuestHost
- Timestamp:
- Feb 10, 2010 12:10:01 PM (15 years ago)
- Location:
- trunk/src/VBox/GuestHost/OpenGL
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/OpenGL/include/state/cr_limits.h
r24783 r26407 23 23 24 24 25 #define CR_MAX_TEXTURE_UNITS 825 #define CR_MAX_TEXTURE_UNITS 16 26 26 #define CR_MAX_GENERAL_COMBINERS 8 27 27 #define CR_MAX_TEXTURE_SIZE 8192 … … 70 70 #define CR_MAX_FRAGMENT_PROGRAM_INSTRUCTIONS 72 71 71 #define CR_MAX_FRAGMENT_PROGRAM_LOCAL_PARAMS 24 72 #define CR_MAX_FRAGMENT_PROGRAM_ENV_PARAMS 2 472 #define CR_MAX_FRAGMENT_PROGRAM_ENV_PARAMS 256 73 73 #define CR_MAX_FRAGMENT_PROGRAM_TEMPS 16 74 74 #define CR_MAX_FRAGMENT_PROGRAM_ATTRIBS 10 -
trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_buffer.c
r23694 r26407 492 492 if (g->framebufferobject.drawFB) 493 493 { 494 crStateError(__LINE__, __FILE__, GL_INVALID_OPERATION, "glDrawBuffer inval ud mode while fbo is active");494 crStateError(__LINE__, __FILE__, GL_INVALID_OPERATION, "glDrawBuffer invalid mode while fbo is active"); 495 495 return; 496 496 } … … 501 501 if (!g->framebufferobject.drawFB) 502 502 { 503 crStateError(__LINE__, __FILE__, GL_INVALID_OPERATION, "glDrawBuffer inval ud mode while fbo is inactive");503 crStateError(__LINE__, __FILE__, GL_INVALID_OPERATION, "glDrawBuffer invalid mode while fbo is inactive"); 504 504 return; 505 505 } -
trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_client.c
r25303 r26407 250 250 for (i = 0; i < CR_MAX_VERTEX_ATTRIBS; i++) { 251 251 c->array.a[i].enabled = GL_FALSE; 252 c->array.a[i].type = 0;253 c->array.a[i].size = 0;252 c->array.a[i].type = GL_FLOAT; 253 c->array.a[i].size = 4; 254 254 c->array.a[i].stride = 0; 255 255 #ifdef CR_ARB_vertex_buffer_object … … 1798 1798 for (i = 0; (unsigned int)i < toCtx->limits.maxVertexProgramAttribs; i++) { 1799 1799 if (from->array.a[i].enabled != to->array.a[i].enabled) { 1800 able[to->array.a[i].enabled](GL_VERTEX_ATTRIB_ARRAY0_NV + i); 1800 if (to->array.a[i].enabled) 1801 diff_api.EnableVertexAttribArrayARB(i); 1802 else 1803 diff_api.DisableVertexAttribArrayARB(i); 1801 1804 from->array.a[i].enabled = to->array.a[i].enabled; 1802 1805 } … … 1982 1985 for (i = 0; (unsigned int)i < toCtx->limits.maxVertexProgramAttribs; i++) { 1983 1986 if (from->array.a[i].enabled != to->array.a[i].enabled) { 1984 able[to->array.a[i].enabled](GL_VERTEX_ATTRIB_ARRAY0_NV + i); 1987 if (to->array.a[i].enabled) 1988 diff_api.EnableVertexAttribArrayARB(i); 1989 else 1990 diff_api.DisableVertexAttribArrayARB(i); 1985 1991 FILLDIRTY(cb->enableClientState); 1986 1992 }
Note:
See TracChangeset
for help on using the changeset viewer.