VirtualBox

Ignore:
Timestamp:
Feb 14, 2012 11:37:40 AM (13 years ago)
Author:
vboxsync
Message:

crOpenGL: add some extensions required for wined3d+wddm

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  
    291291        if (hasExtension((const char*)limits->extensions, "GL_ARB_texture_mirrored_repeat"))
    292292                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;
    293296
    294297        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  
    1313#include "cr_version.h"
    1414#include "state_internals.h"
     15
     16#ifdef DEBUG_misha
     17#include <iprt/assert.h>
     18#endif
    1519
    1620#define UNUSED(x) ((void) (x))
     
    10241028            }
    10251029#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
    10261035            else {
    10271036                crStateError(__LINE__, __FILE__, GL_INVALID_ENUM,
     
    10511060#ifdef CR_ARB_texture_mirrored_repeat
    10521061            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) {
    10531067                tobj->wrapT = e;
    10541068            }
     
    10801094#ifdef CR_ARB_texture_mirrored_repeat
    10811095            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) {
    10821101                tobj->wrapR = e;
    10831102            }
     
    31843203    CRTextureObj *tobj = GET_TOBJ(tobj, g, id);
    31853204
     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
    31863221    return tobj ? crStateGetTextureObjHWID(tobj) : 0;
    31873222}
     
    31963231        CRASSERT(diff_api.GenTextures);
    31973232        diff_api.GenTextures(1, &tobj->hwid);
     3233#ifdef DEBUG_misha
     3234        crDebug("tex id(%d), hwid(%d)", tobj->id, tobj->hwid);
     3235#endif
    31983236        CRASSERT(tobj->hwid);
    31993237    }
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette