- Timestamp:
- Mar 5, 2015 12:34:02 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-ogl.cpp
r54633 r54639 163 163 #elif defined(RT_OS_DARWIN) 164 164 # define VMSVGA3D_SET_CURRENT_CONTEXT(pState, pContext) \ 165 if ((pState)->idActiveContext != (pContext)->id) 166 { 165 if ((pState)->idActiveContext != (pContext)->id) \ 166 { \ 167 167 vmsvga3dCocoaViewMakeCurrentContext((pContext)->cocoaView, (pContext)->cocoaContext); \ 168 168 LogFlowFunc(("Changing context: %#x -> %#x\n", (pState)->idActiveContext, (pContext)->id)); \ 169 (pState)->idActiveContext = (pContext)->id; 169 (pState)->idActiveContext = (pContext)->id; \ 170 170 } else do { } while (0) 171 171 #else … … 182 182 #endif 183 183 184 /** @def VMSVGA3D_CLEAR_ LAST_ERRORS184 /** @def VMSVGA3D_CLEAR_GL_ERRORS 185 185 * Clears all pending OpenGL errors. 186 186 * … … 251 251 do { \ 252 252 AssertMsg((a_pState)->idActiveContext == (a_pContext)->id, \ 253 ("idActiveContext=%#x id=% #x\n", (a_pState)->idActiveContext, (a_pContext)->id)); \253 ("idActiveContext=%#x id=%x\n", (a_pState)->idActiveContext, (a_pContext)->id)); \ 254 254 RTAssertMsg2Weak a_LogRelDetails; \ 255 255 GLenum iNextError; \ … … 2775 2775 VMSVGA3D_CHECK_LAST_ERROR(pState, pContext); 2776 2776 2777 LogFlow(("vmsvga3dCreateTexture: sid=% #x idAssociatedContext %#x -> %#x; oglId.texture=%#x\n",2777 LogFlow(("vmsvga3dCreateTexture: sid=%x idAssociatedContext %#x -> %#x; oglId.texture=%#x\n", 2778 2778 pSurface->id, pSurface->idAssociatedContext, idAssociatedContext, pSurface->oglId.texture)); 2779 2779 pSurface->flags |= SVGA3D_SURFACE_HINT_TEXTURE; … … 2805 2805 AssertReturn(pSurfaceDest->faces[0].numMipLevels > dest.mipmap, VERR_INVALID_PARAMETER); 2806 2806 2807 Log(("vmsvga3dSurfaceStretchBlt: src sid=%x cid=% #x (%d,%d)(%d,%d) dest sid=%x cid=%#x (%d,%d)(%d,%d) mode=%x\n",2807 Log(("vmsvga3dSurfaceStretchBlt: src sid=%x cid=%x (%d,%d)(%d,%d) dest sid=%x cid=%x (%d,%d)(%d,%d) mode=%x\n", 2808 2808 src.sid, pSurfaceSrc->idAssociatedContext, srcBox.x, srcBox.y, srcBox.x + srcBox.w, srcBox.y + srcBox.h, 2809 2809 dest.sid, pSurfaceDest->idAssociatedContext, destBox.x, destBox.y, destBox.x + destBox.w, destBox.y + destBox.h, mode)); … … 5278 5278 VMSVGA3D_CHECK_LAST_ERROR(pState, pContext); 5279 5279 5280 LogFlow(("vmsvga3dSetRenderTarget: sid=% #x idAssociatedContext %#x -> %#x\n", pRenderTarget->id, pRenderTarget->idAssociatedContext, cid));5280 LogFlow(("vmsvga3dSetRenderTarget: sid=%x idAssociatedContext %#x -> %#x\n", pRenderTarget->id, pRenderTarget->idAssociatedContext, cid)); 5281 5281 pRenderTarget->idAssociatedContext = cid; 5282 5282 } … … 6365 6365 } 6366 6366 pVertexSurface->idAssociatedContext = pContext->id; 6367 LogFlow(("vmsvga3dDrawPrimitivesProcessVertexDecls: sid=% #x idAssociatedContext %#x -> %#x\n", pVertexSurface->id, pVertexSurface->idAssociatedContext, pContext->id));6367 LogFlow(("vmsvga3dDrawPrimitivesProcessVertexDecls: sid=%x idAssociatedContext %#x -> %#x\n", pVertexSurface->id, pVertexSurface->idAssociatedContext, pContext->id)); 6368 6368 6369 6369 /* Setup the vertex declarations. */ … … 6667 6667 VMSVGA3D_CHECK_LAST_ERROR(pState, pContext); 6668 6668 } 6669 LogFlow(("vmsvga3dDrawPrimitives: sid=% #x idAssociatedContext %#x -> %#x\n", pIndexSurface->id, pIndexSurface->idAssociatedContext, pContext->id));6669 LogFlow(("vmsvga3dDrawPrimitives: sid=%x idAssociatedContext %#x -> %#x\n", pIndexSurface->id, pIndexSurface->idAssociatedContext, pContext->id)); 6670 6670 pIndexSurface->idAssociatedContext = pContext->id; 6671 6671 }
Note:
See TracChangeset
for help on using the changeset viewer.