Changeset 49294 in vbox for trunk/src/VBox/HostServices/SharedOpenGL/render
- Timestamp:
- Oct 25, 2013 4:02:21 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu_cocoa_helper.m
r48348 r49294 180 180 while(0); 181 181 182 static NSOpenGLContext * vboxCtxGetCurrent() 183 { 184 GET_CONTEXT(pCtxInfo); 185 if (pCtxInfo) 186 { 187 Assert(pCtxInfo->context); 188 return pCtxInfo->context; 189 } 190 191 return nil; 192 } 182 193 183 194 static bool vboxCtxSyncCurrentInfo() … … 219 230 static void vboxCtxEnter(NSOpenGLContext*pCtx, PVBOX_CR_RENDER_CTX_INFO pCtxInfo) 220 231 { 221 NSOpenGLContext *pOldCtx = [NSOpenGLContext currentContext];232 NSOpenGLContext *pOldCtx = vboxCtxGetCurrent(); 222 233 NSView *pOldView = (pOldCtx ? [pOldCtx view] : nil); 223 234 NSView *pView = [pCtx view]; … … 1016 1027 1017 1028 vboxCtxLeave(&CtxInfo); 1018 1019 vboxCtxSyncCurrentInfo();1020 1029 } 1021 1030 } … … 1268 1277 1269 1278 vboxCtxLeave(&CtxInfo); 1270 1271 vboxCtxSyncCurrentInfo();1272 1279 } 1273 1280
Note:
See TracChangeset
for help on using the changeset viewer.