Changeset 24489 in vbox for trunk/src/VBox/HostServices/SharedOpenGL
- Timestamp:
- Nov 9, 2009 11:17:15 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu_cocoa_helper.m
r24483 r24489 897 897 898 898 #ifdef FBO 899 glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, m_FBOId); 899 if([NSOpenGLContext currentContext] != 0) 900 glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, m_FBOId); 900 901 #endif 901 902 if (m_pGLCtx) … … 904 905 { 905 906 /* We change the active view, so flush first */ 906 glFlush(); 907 if([NSOpenGLContext currentContext] != 0) 908 glFlush(); 907 909 [m_pGLCtx setView: self]; 908 910 CHECK_GL_ERROR(); … … 1367 1369 NSAutoreleasePool *pPool = [[NSAutoreleasePool alloc] init]; 1368 1370 1369 if ([NSOpenGLContext currentContext] != pCtx)1370 [pCtx makeCurrentContext];1371 1372 1371 [(OverlayView*)pView setGLCtx:pCtx]; 1373 1372 [(OverlayView*)pView makeCurrentFBO];
Note:
See TracChangeset
for help on using the changeset viewer.