VirtualBox

Ignore:
Timestamp:
May 31, 2013 1:27:10 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
86135
Message:

crOpenGL: bugfixes, debugging, dumping draw commands to html

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/crOpenGL/pack/packspu_client.c

    r42499 r46343  
    501501}
    502502
     503#define CRDBG_BREAK_ENABLE_TEXTURE_2D         0x0001
     504#define CRDBG_BREAK_DISABLE_TEXTURE_2D        0x0002
     505#define CRDBG_BREAK_ENABLE_TEXTURE_RECTANGLE  0x0010
     506#define CRDBG_BREAK_DISABLE_TEXTURE_RECTANGLE 0x0020
     507
     508static int g_VDbgBreakEnableDisable = 0x33;
     509
    503510void PACKSPU_APIENTRY packspu_Enable( GLenum cap )
    504511{
    505512    if (cap!=GL_LIGHT_MODEL_TWO_SIDE)
    506513    {
     514        if (cap == GL_TEXTURE_2D)
     515        {
     516            if (g_VDbgBreakEnableDisable & CRDBG_BREAK_ENABLE_TEXTURE_2D) { RT_BREAKPOINT();}
     517        }
     518        else if (cap == GL_TEXTURE_RECTANGLE_NV)
     519        {
     520            if (g_VDbgBreakEnableDisable & CRDBG_BREAK_ENABLE_TEXTURE_RECTANGLE) { RT_BREAKPOINT();}
     521        }
    507522        crStateEnable(cap);
    508523
     
    530545    if (cap!=GL_LIGHT_MODEL_TWO_SIDE)
    531546    {
     547        if (cap == GL_TEXTURE_2D)
     548        {
     549            if (g_VDbgBreakEnableDisable & CRDBG_BREAK_DISABLE_TEXTURE_2D) { RT_BREAKPOINT();}
     550        }
     551        else if (cap == GL_TEXTURE_RECTANGLE_NV)
     552        {
     553            if (g_VDbgBreakEnableDisable & CRDBG_BREAK_DISABLE_TEXTURE_RECTANGLE) { RT_BREAKPOINT();}
     554        }
     555
    532556        crStateDisable(cap);
    533557
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