Changeset 44930 in vbox for trunk/src/VBox/GuestHost/OpenGL
- Timestamp:
- Mar 6, 2013 10:29:33 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_glsl.c
r44529 r44930 1187 1187 DECLEXPORT(void) STATE_APIENTRY crStateGLSLSwitch(CRContext *from, CRContext *to) 1188 1188 { 1189 GLboolean fForceUseProgramSet = GL_FALSE; 1189 1190 if (to->glsl.bResyncNeeded) 1190 1191 { … … 1195 1196 crHashtableWalk(to->glsl.programs, crStateGLSLCreateProgramCB, to); 1196 1197 1198 /* crStateGLSLCreateProgramCB changes the current program, ensure we have the proper program re-sored */ 1199 fForceUseProgramSet = GL_TRUE; 1200 1197 1201 crHashtableWalk(to->glsl.shaders, crStateGLSLSyncShadersCB, NULL); 1198 1202 } 1199 1203 1200 if (to->glsl.activeProgram != from->glsl.activeProgram )1204 if (to->glsl.activeProgram != from->glsl.activeProgram || fForceUseProgramSet) 1201 1205 { 1202 1206 diff_api.UseProgram(to->glsl.activeProgram ? to->glsl.activeProgram->hwid : 0);
Note:
See TracChangeset
for help on using the changeset viewer.