Changeset 40124 in vbox
- Timestamp:
- Feb 14, 2012 11:37:40 AM (13 years ago)
- Location:
- trunk/src/VBox/GuestHost/OpenGL
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/OpenGL/include/GL/glext.h
r39206 r40124 784 784 #ifndef GL_ARB_texture_mirrored_repeat 785 785 #define GL_MIRRORED_REPEAT_ARB 0x8370 786 #endif 787 788 #ifndef GL_ATI_texture_mirror_once 789 #define GL_MIRROR_CLAMP_ATI 0x8742 790 #define GL_MIRROR_CLAMP_TO_EDGE_ATI 0x8743 786 791 #endif 787 792 … … 4524 4529 #endif 4525 4530 4531 #ifndef GL_ATI_texture_mirror_once 4532 #define GL_ATI_texture_mirror_once 1 4533 #endif 4534 4526 4535 #ifndef GL_ARB_depth_texture 4527 4536 #define GL_ARB_depth_texture 1 -
trunk/src/VBox/GuestHost/OpenGL/include/cr_extstring.h
r35271 r40124 83 83 #endif 84 84 #ifdef CR_ARB_texture_mirrored_repeat 85 "GL_ARB_texture_mirrored_repeat " 85 "GL_ARB_texture_mirrored_repeat GL_IBM_texture_mirrored_repeat " 86 #endif 87 #ifdef CR_ATI_texture_mirror_once 88 "GL_ATI_texture_mirror_once " 86 89 #endif 87 90 #ifdef CR_ARB_texture_non_power_of_two -
trunk/src/VBox/GuestHost/OpenGL/include/cr_version.h
r35271 r40124 68 68 #define CR_ARB_texture_env_dot3 1 69 69 #define CR_ARB_texture_mirrored_repeat 1 70 #define CR_ATI_texture_mirror_once 1 70 71 #define CR_ARB_texture_non_power_of_two 1 71 72 #define CR_ARB_transpose_matrix 1 -
trunk/src/VBox/GuestHost/OpenGL/include/state/cr_limits.h
r29019 r40124 259 259 GLboolean SGIS_generate_mipmap; 260 260 GLboolean EXT_texture_from_pixmap; 261 GLboolean ATI_texture_mirror_once; 261 262 262 263 /* derived from above */ -
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 } -
trunk/src/VBox/GuestHost/OpenGL/util/net.c
r33561 r40124 413 413 { 414 414 #ifdef WINDOWS 415 /* @todo: do we actually need that WSA stuff with VBox at all? */ 415 416 WORD wVersionRequested = MAKEWORD(2, 0); 416 417 WSADATA wsaData;
Note:
See TracChangeset
for help on using the changeset viewer.