Changeset 16718 in vbox for trunk/src/VBox/Additions/WINNT/Graphics/crOpenGL/load.c
- Timestamp:
- Feb 12, 2009 7:01:48 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/crOpenGL/load.c
r16640 r16718 74 74 static ClearFunc_t origClear; 75 75 static ViewportFunc_t origViewport; 76 static SwapBuffersFunc_t origSwapBuffers; 77 static DrawBufferFunc_t origDrawBuffer; 76 78 77 79 static void stubCheckWindowState(void) … … 152 154 } 153 155 156 static void SPU_APIENTRY trapSwapBuffers(GLint window, GLint flags) 157 { 158 stubCheckWindowState(); 159 origSwapBuffers(window, flags); 160 } 161 162 static void SPU_APIENTRY trapDrawBuffer(GLenum buf) 163 { 164 stubCheckWindowState(); 165 origDrawBuffer(buf); 166 } 154 167 155 168 /** … … 166 179 origClear = stub.spuDispatch.Clear; 167 180 origViewport = stub.spuDispatch.Viewport; 181 origSwapBuffers = stub.spuDispatch.SwapBuffers; 182 origDrawBuffer = stub.spuDispatch.DrawBuffer; 168 183 stub.spuDispatch.Clear = trapClear; 169 184 stub.spuDispatch.Viewport = trapViewport; 185 /*stub.spuDispatch.SwapBuffers = trapSwapBuffers; 186 stub.spuDispatch.DrawBuffer = trapDrawBuffer;*/ 170 187 } 171 188 … … 297 314 #elif defined(GLX) 298 315 defaultWin->pVisibleRegions = NULL; 316 defaultWin->cVisibleRegions = 0; 299 317 #endif 300 318 crHashtableAdd(stub.windowTable, 0, defaultWin);
Note:
See TracChangeset
for help on using the changeset viewer.