VirtualBox

Ignore:
Timestamp:
Sep 27, 2013 10:19:54 AM (11 years ago)
Author:
vboxsync
Message:

crOpenGL: seamless fixes

File:
1 edited

Legend:

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

    r48356 r48726  
    698698}
    699699
     700#ifdef DEBUG_misha
     701# define CR_DBG_DUMP_VISIBLE_REGIONS
     702#endif
     703
     704#ifdef CR_DBG_DUMP_VISIBLE_REGIONS
     705static void renderspuDbgDumpVisibleRegion(GLint win, GLint cRects, const GLint *pRects)
     706{
     707    GLint i;
     708    const RTRECT *pRtRects = (const RTRECT *)((const void*)pRects);
     709
     710    crInfo("Window %d, Vidible Regions%d", win, cRects);
     711    for (i = 0; i < cRects; ++i)
     712    {
     713        crInfo("%d: (%d,%d), (%d,%d)", i, pRtRects[i].xLeft, pRtRects[i].yTop, pRtRects[i].xRight, pRtRects[i].yBottom);
     714    }
     715    crInfo("======");
     716}
     717#endif
     718
    700719static void RENDER_APIENTRY
    701720renderspuWindowVisibleRegion(GLint win, GLint cRects, const GLint *pRects)
     
    703722    WindowInfo *window;
    704723    CRASSERT(win >= 0);
     724
     725#ifdef CR_DBG_DUMP_VISIBLE_REGIONS
     726    renderspuDbgDumpVisibleRegion(win, cRects, pRects);
     727#endif
     728
    705729    window = (WindowInfo *) crHashtableSearch(render_spu.windowTable, win);
    706730    if (window) {
     
    708732    }
    709733    else {
    710         crDebug("Render SPU: Attempt to set VisibleRegion for invalid window (%d)", win);
     734        crWarning("Render SPU: Attempt to set VisibleRegion for invalid window (%d)", win);
    711735    }
    712736}
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