VirtualBox

Changeset 40124 in vbox


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
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/OpenGL/include/GL/glext.h

    r39206 r40124  
    784784#ifndef GL_ARB_texture_mirrored_repeat
    785785#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
    786791#endif
    787792
     
    45244529#endif
    45254530
     4531#ifndef GL_ATI_texture_mirror_once
     4532#define GL_ATI_texture_mirror_once 1
     4533#endif
     4534
    45264535#ifndef GL_ARB_depth_texture
    45274536#define GL_ARB_depth_texture 1
  • trunk/src/VBox/GuestHost/OpenGL/include/cr_extstring.h

    r35271 r40124  
    8383#endif
    8484#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 "
    8689#endif
    8790#ifdef CR_ARB_texture_non_power_of_two
  • trunk/src/VBox/GuestHost/OpenGL/include/cr_version.h

    r35271 r40124  
    6868#define CR_ARB_texture_env_dot3 1
    6969#define CR_ARB_texture_mirrored_repeat 1
     70#define CR_ATI_texture_mirror_once 1
    7071#define CR_ARB_texture_non_power_of_two 1
    7172#define CR_ARB_transpose_matrix 1
  • trunk/src/VBox/GuestHost/OpenGL/include/state/cr_limits.h

    r29019 r40124  
    259259        GLboolean SGIS_generate_mipmap;
    260260    GLboolean EXT_texture_from_pixmap;
     261        GLboolean ATI_texture_mirror_once;
    261262
    262263        /* derived from above */
  • 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    }
  • trunk/src/VBox/GuestHost/OpenGL/util/net.c

    r33561 r40124  
    413413    {
    414414#ifdef WINDOWS
     415        /* @todo: do we actually need that WSA stuff with VBox at all? */
    415416        WORD wVersionRequested = MAKEWORD(2, 0);
    416417        WSADATA wsaData;
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