void PACKSPU_APIENTRY packspu_Disable( GLenum cap ) { if (cap!=GL_LIGHT_MODEL_TWO_SIDE) { if (cap == GL_TEXTURE_2D) { if (g_VDbgBreakEnableDisable & CRDBG_BREAK_DISABLE_TEXTURE_2D) { RT_BREAKPOINT();} } else if (cap == GL_TEXTURE_RECTANGLE_NV) { if (g_VDbgBreakEnableDisable & CRDBG_BREAK_DISABLE_TEXTURE_RECTANGLE) { RT_BREAKPOINT();} } crStateDisable(cap); if (pack_spu.swap) crPackDisableSWAP(cap); else crPackDisable(cap); } else { static int g_glmts0_warn=0; if (!g_glmts0_warn) { crWarning("glDisable(GL_LIGHT_MODEL_TWO_SIDE) converted to valid glLightModeli(GL_LIGHT_MODEL_TWO_SIDE,0)"); g_glmts0_warn=1; } crStateLightModeli(GL_LIGHT_MODEL_TWO_SIDE, 0); crPackLightModeli(GL_LIGHT_MODEL_TWO_SIDE, 0); } }
void PACKSPU_APIENTRY packspu_Disable( GLenum cap ) { if (cap!=GL_LIGHT_MODEL_TWO_SIDE) { crStateDisable(cap); if (pack_spu.swap) crPackDisableSWAP(cap); else crPackDisable(cap); } else { static int g_glmts0_warn=0; if (!g_glmts0_warn) { crWarning("glDisable(GL_LIGHT_MODEL_TWO_SIDE) converted to valid glLightModeli(GL_LIGHT_MODEL_TWO_SIDE,0)"); g_glmts0_warn=1; } crStateLightModeli(GL_LIGHT_MODEL_TWO_SIDE, 0); crPackLightModeli(GL_LIGHT_MODEL_TWO_SIDE, 0); } }