Changeset 40124 in vbox for trunk/src/VBox/GuestHost/OpenGL/state_tracker
- Timestamp:
- Feb 14, 2012 11:37:40 AM (13 years ago)
- Location:
- trunk/src/VBox/GuestHost/OpenGL/state_tracker
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_limits.c
r27091 r40124 291 291 if (hasExtension((const char*)limits->extensions, "GL_ARB_texture_mirrored_repeat")) 292 292 extensions->ARB_texture_mirrored_repeat = GL_TRUE; 293 294 if (hasExtension((const char*)limits->extensions, "GL_ATI_texture_mirror_once")) 295 extensions->ATI_texture_mirror_once = GL_TRUE; 293 296 294 297 if (hasExtension((const char*)limits->extensions, "GL_ARB_texture_non_power_of_two")) -
trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_texture.c
r37771 r40124 13 13 #include "cr_version.h" 14 14 #include "state_internals.h" 15 16 #ifdef DEBUG_misha 17 #include <iprt/assert.h> 18 #endif 15 19 16 20 #define UNUSED(x) ((void) (x)) … … 1024 1028 } 1025 1029 #endif 1030 #ifdef CR_ATI_texture_mirror_once 1031 else if ((e == GL_MIRROR_CLAMP_ATI || e == GL_MIRROR_CLAMP_TO_EDGE_ATI) && g->extensions.ATI_texture_mirror_once) { 1032 tobj->wrapS = e; 1033 } 1034 #endif 1026 1035 else { 1027 1036 crStateError(__LINE__, __FILE__, GL_INVALID_ENUM, … … 1051 1060 #ifdef CR_ARB_texture_mirrored_repeat 1052 1061 else if (e == GL_MIRRORED_REPEAT_ARB && g->extensions.ARB_texture_mirrored_repeat) { 1062 tobj->wrapT = e; 1063 } 1064 #endif 1065 #ifdef CR_ATI_texture_mirror_once 1066 else if ((e == GL_MIRROR_CLAMP_ATI || e == GL_MIRROR_CLAMP_TO_EDGE_ATI) && g->extensions.ATI_texture_mirror_once) { 1053 1067 tobj->wrapT = e; 1054 1068 } … … 1080 1094 #ifdef CR_ARB_texture_mirrored_repeat 1081 1095 else if (e == GL_MIRRORED_REPEAT_ARB && g->extensions.ARB_texture_mirrored_repeat) { 1096 tobj->wrapR = e; 1097 } 1098 #endif 1099 #ifdef CR_ATI_texture_mirror_once 1100 else if ((e == GL_MIRROR_CLAMP_ATI || e == GL_MIRROR_CLAMP_TO_EDGE_ATI) && g->extensions.ATI_texture_mirror_once) { 1082 1101 tobj->wrapR = e; 1083 1102 } … … 3184 3203 CRTextureObj *tobj = GET_TOBJ(tobj, g, id); 3185 3204 3205 #ifdef DEBUG_misha 3206 if (id) 3207 { 3208 Assert(tobj); 3209 } 3210 else 3211 { 3212 Assert(!tobj); 3213 } 3214 if (tobj) 3215 { 3216 crDebug("tex id(%d), hwid(%d)", tobj->id, tobj->hwid); 3217 } 3218 #endif 3219 3220 3186 3221 return tobj ? crStateGetTextureObjHWID(tobj) : 0; 3187 3222 } … … 3196 3231 CRASSERT(diff_api.GenTextures); 3197 3232 diff_api.GenTextures(1, &tobj->hwid); 3233 #ifdef DEBUG_misha 3234 crDebug("tex id(%d), hwid(%d)", tobj->id, tobj->hwid); 3235 #endif 3198 3236 CRASSERT(tobj->hwid); 3199 3237 }
Note:
See TracChangeset
for help on using the changeset viewer.