- Timestamp:
- May 26, 2009 12:09:31 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/crOpenGL/load.c
r18088 r20029 74 74 static SwapBuffersFunc_t origSwapBuffers; 75 75 static DrawBufferFunc_t origDrawBuffer; 76 static ScissorFunc_t origScissor; 76 77 77 78 static void stubCheckWindowState(void) 78 79 { 79 int winX, winY;80 unsigned int winW, winH;81 80 WindowInfo *window; 82 81 bool bForceUpdate = false; … … 88 87 89 88 window = stub.currentContext->currentDrawable; 90 91 stubGetWindowGeometry( window, &winX, &winY, &winW, &winH );92 89 93 90 #ifdef WINDOWS … … 148 145 { 149 146 stubCheckWindowState(); 150 /* call the original SPU glViewport function */ 147 /* call the original SPU glViewport function */ 151 148 origViewport(x, y, w, h); 149 150 /* 151 { 152 int winX, winY; 153 unsigned int winW, winH; 154 WindowInfo *pWindow; 155 pWindow = stub.currentContext->currentDrawable; 156 stubGetWindowGeometry(pWindow, &winX, &winY, &winW, &winH); 157 origViewport(0, 0, winW, winH); 158 } 159 */ 152 160 } 153 161 … … 162 170 stubCheckWindowState(); 163 171 origDrawBuffer(buf); 172 } 173 174 static void SPU_APIENTRY trapScissor(GLint x, GLint y, GLsizei w, GLsizei h) 175 { 176 origScissor(x, y, w, h); 177 178 /* 179 { 180 int winX, winY; 181 unsigned int winW, winH; 182 WindowInfo *pWindow; 183 pWindow = stub.currentContext->currentDrawable; 184 stubGetWindowGeometry(pWindow, &winX, &winY, &winW, &winH); 185 origScissor(0, 0, winW, winH); 186 } 187 */ 164 188 } 165 189 … … 179 203 origSwapBuffers = stub.spuDispatch.SwapBuffers; 180 204 origDrawBuffer = stub.spuDispatch.DrawBuffer; 205 origScissor = stub.spuDispatch.Scissor; 181 206 stub.spuDispatch.Clear = trapClear; 182 207 stub.spuDispatch.Viewport = trapViewport; 208 /*stub.spuDispatch.Scissor = trapScissor;*/ 183 209 /*stub.spuDispatch.SwapBuffers = trapSwapBuffers; 184 210 stub.spuDispatch.DrawBuffer = trapDrawBuffer;*/
Note:
See TracChangeset
for help on using the changeset viewer.