VirtualBox

Changeset 48613 in vbox for trunk/src/VBox/GuestHost


Ignore:
Timestamp:
Sep 20, 2013 4:22:23 PM (11 years ago)
Author:
vboxsync
Message:

crOpenGL: dumper enhancements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/OpenGL/state_tracker/dump.cpp

    r48292 r48613  
    3434#ifdef VBOX_WITH_CRDUMPER
    3535
     36static uint32_t g_CrDbgDumpRecTexInfo = 0;
     37
    3638/* dump stuff */
    3739#pragma pack(1)
     
    340342    GLint hwTex = 0, hwObjType = 0, hwTexLevel = 0, hwCubeFace = 0;
    341343    GLint width = 0, height = 0, depth = 0;
     344    GLint id = 0;
    342345    CR_BLITTER_IMG Img = {0};
    343346    VBOXVR_TEXTURE Tex;
     
    384387        CRTextureLevel *pTl = NULL;
    385388
     389        id = pTobj->id;
     390
    386391        Assert(iColor < RT_ELEMENTS(ctx->framebufferobject.drawFB->color));
    387392
     
    457462    if (RT_SUCCESS(rc))
    458463    {
    459         crDmpImg(pRec->pDumper, &Img, "buffer_data");
     464        crDmpImgF(pRec->pDumper, &Img, "ctx(%d), BUFFER: id(%d) hwid(%d), width(%d), height(%d)", ctx, id, Tex.hwid, width, height);
    460465        CrBltImgFree(pRec->pBlitter, &Img);
    461466    }
     
    13151320                Tex.hwid = hwTex;
    13161321
    1317                 crRecDumpTexParam(pRec, ctx, GL_TEXTURE_2D);
    1318                 crRecDumpTexEnv(pRec, ctx);
    1319                 crRecDumpTexGen(pRec, ctx);
     1322                if (g_CrDbgDumpRecTexInfo)
     1323                {
     1324                    crRecDumpTexParam(pRec, ctx, GL_TEXTURE_2D);
     1325                    crRecDumpTexEnv(pRec, ctx);
     1326                    crRecDumpTexGen(pRec, ctx);
     1327                }
    13201328
    13211329                rc = CrBltEnter(pRec->pBlitter, pCurCtx, pCurWin);
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