VirtualBox

Ignore:
Timestamp:
Oct 4, 2013 7:35:58 PM (11 years ago)
Author:
vboxsync
Message:

crOpenGL: dumping stuff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_misc.c

    r48615 r48897  
    15901590}
    15911591
    1592 void crServerDumpTextures()
     1592void crServerDumpTexture(const VBOXVR_TEXTURE *pTex)
    15931593{
    15941594    CRContextInfo *pCtxInfo = cr_server.currentCtxInfo;
     
    16061606    crServerVBoxBlitterCtxInit(&BltCtx, pCtxInfo);
    16071607
     1608    crRecDumpTextureF(&cr_server.Recorder, pTex, &BltCtx, &BltWin, "Tex (%d x %d), hwid (%d) target %#x", pTex->width, pTex->height, pTex->hwid, pTex->target);
     1609}
     1610
     1611void crServerDumpTextures()
     1612{
     1613    CRContextInfo *pCtxInfo = cr_server.currentCtxInfo;
     1614    CR_BLITTER_WINDOW BltWin;
     1615    CR_BLITTER_CONTEXT BltCtx;
     1616    CRContext *ctx = crStateGetCurrent();
     1617    int rc = crServerDumpCheckInit();
     1618    if (!RT_SUCCESS(rc))
     1619    {
     1620        crWarning("crServerDumpCheckInit failed, rc %d", rc);
     1621        return;
     1622    }
     1623
     1624    crServerVBoxBlitterWinInit(&BltWin, cr_server.currentMural);
     1625    crServerVBoxBlitterCtxInit(&BltCtx, pCtxInfo);
     1626
    16081627    crRecDumpTextures(&cr_server.Recorder, ctx, &BltCtx, &BltWin);
    16091628}
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