VirtualBox

Ignore:
Timestamp:
Apr 16, 2014 11:32:58 AM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
93351
Message:

crOpenGL/OSX: bugfixes

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

Legend:

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

    r51064 r51082  
    17731773{
    17741774    WindowInfo *pWindow = (WindowInfo *)data1;
    1775     CRHashTable *pTable = (CRHashTable*)data2;
    1776 
    1777     crHashtableDelete(pTable, key, NULL);
    1778 
    1779     renderspuWindowTerm(pWindow);
    1780 
    1781     crFree(pWindow);
     1775
     1776    renderspu_SystemReparentWindow(pWindow);
    17821777}
    17831778
  • trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu_cocoa.c

    r50095 r51082  
    229229    GET_CONTEXT(pCurCtx);
    230230    pInfo->pContext = pCurCtx;
    231     pInfo->pWindow = pCurCtx->currentWindow;
     231    pInfo->pWindow = pCurCtx ? pCurCtx->currentWindow : NULL;
    232232}
    233233
     
    254254        if (!window)
    255255        {
    256             crWarning("renderspuGetDummyWindow failed");
     256            WARN(("renderspuGetDummyWindow failed"));
    257257            return GL_FALSE;
    258258        }
     
    285285            }
    286286            else
    287                 crWarning("renderspuCtxSetCurrentWithAnyWindow failed!");
     287                WARN(("renderspuCtxSetCurrentWithAnyWindow failed!"));
    288288        }
    289289    }
     
    302302            int rc = CrGlslProgGenAllNoAlpha(&render_spu.GlobalShaders);
    303303            if (!RT_SUCCESS(rc))
    304                 crWarning("CrGlslProgGenAllNoAlpha failed, rc %d", rc);
     304                WARN(("CrGlslProgGenAllNoAlpha failed, rc %d", rc));
    305305
    306306            renderspuCtxInfoRestoreCurrent(&Info);
Note: See TracChangeset for help on using the changeset viewer.

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