VirtualBox

Ignore:
Timestamp:
Mar 28, 2012 4:37:33 PM (13 years ago)
Author:
vboxsync
Message:

crOpenGL: multiple contexts prototype for OSX

Location:
trunk/src/VBox/HostServices/SharedOpenGL/render
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu_cocoa.c

    r39206 r40697  
    3131}
    3232
    33 GLboolean renderspu_SystemCreateContext(VisualInfo *pVisInfo, ContextInfo *pCtxInfo, ContextInfo *pShharedCtxInfo)
     33GLboolean renderspu_SystemCreateContext(VisualInfo *pVisInfo, ContextInfo *pCtxInfo, ContextInfo *pSharedCtxInfo)
    3434{
    3535    CRASSERT(pVisInfo);
     
    3838    pCtxInfo->currentWindow = NULL;
    3939
    40     cocoaGLCtxCreate(&pCtxInfo->context, pVisInfo->visAttribs);
     40    cocoaGLCtxCreate(&pCtxInfo->context, pVisInfo->visAttribs, pShharedCtxInfo ? pSharedCtxInfo->context : NULL);
    4141
    4242    return GL_TRUE;
  • trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu_cocoa_helper.h

    r39206 r40697  
    2929
    3030/* OpenGL context management */
    31 void cocoaGLCtxCreate(NativeNSOpenGLContextRef *ppCtx, GLbitfield fVisParams);
     31void cocoaGLCtxCreate(NativeNSOpenGLContextRef *ppCtx, GLbitfield fVisParams, NativeNSOpenGLContextRef pSharedCtx);
    3232void cocoaGLCtxDestroy(NativeNSOpenGLContextRef pCtx);
    3333
  • trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu_cocoa_helper.m

    r39206 r40697  
    16171617*
    16181618********************************************************************************/
    1619 void cocoaGLCtxCreate(NativeNSOpenGLContextRef *ppCtx, GLbitfield fVisParams)
     1619void cocoaGLCtxCreate(NativeNSOpenGLContextRef *ppCtx, GLbitfield fVisParams, NativeNSOpenGLContextRef pSharedCtx)
    16201620{
    16211621    NSOpenGLPixelFormat *pFmt = nil;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette