Changeset 46343 in vbox for trunk/src/VBox/Additions/common/crOpenGL/pack
- Timestamp:
- May 31, 2013 1:27:10 PM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 86135
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/crOpenGL/pack/packspu_client.c
r42499 r46343 501 501 } 502 502 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 508 static int g_VDbgBreakEnableDisable = 0x33; 509 503 510 void PACKSPU_APIENTRY packspu_Enable( GLenum cap ) 504 511 { 505 512 if (cap!=GL_LIGHT_MODEL_TWO_SIDE) 506 513 { 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 } 507 522 crStateEnable(cap); 508 523 … … 530 545 if (cap!=GL_LIGHT_MODEL_TWO_SIDE) 531 546 { 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 532 556 crStateDisable(cap); 533 557
Note:
See TracChangeset
for help on using the changeset viewer.