VirtualBox

Changeset 21022 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jun 29, 2009 12:20:32 PM (16 years ago)
Author:
vboxsync
Message:

crOpenGL: fix glew library detection on linux

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/crOpenGL/getprocaddress.py

    r18088 r21022  
    2121#if defined(VBOXOGL_DRI) || defined(VBOXOGL_FAKEDRI)
    2222#include "cr_gl.h"
     23#include "fakedri_drv.h"
    2324#endif
    2425
     
    7677        }
    7778
    78     /*@todo, reuse fakedri_glxfuncsList.h and dri_glx.h here*/
    79     /*also, in case of fake dri, those should point to vbox_glX* not to vbox_stub* ones, VBOXGLXENTRYTAG */
     79
     80#define GLXAPI_ENTRY(Func) if (!crStrcmp(name, "glX"#Func)) return (CR_PROC) &VBOXGLXENTRYTAG(glX##Func);
     81#include "fakedri_glxfuncsList.h"
     82#undef GLXAPI_ENTRY
     83
     84    /*CR_EXT_texture_from_pixmap*/
    8085    if (!crStrcmp( name, "glXBindTexImageEXT" )) return (CR_PROC) VBOXGLXTAG(glXBindTexImageEXT);
    8186    if (!crStrcmp( name, "glXReleaseTexImageEXT" )) return (CR_PROC) VBOXGLXTAG(glXReleaseTexImageEXT);
    82     if (!crStrcmp( name, "glXQueryDrawable" )) return (CR_PROC) VBOXGLXTAG(glXQueryDrawable);
    83     if (!crStrcmp( name, "glXGetFBConfigs" )) return (CR_PROC) VBOXGLXTAG(glXGetFBConfigs);
    84     if (!crStrcmp( name, "glXGetFBConfigAttrib" )) return (CR_PROC) VBOXGLXTAG(glXGetFBConfigAttrib);
    85     if (!crStrcmp( name, "glXCreatePixmap" )) return (CR_PROC) VBOXGLXTAG(glXCreatePixmap);
    86     if (!crStrcmp( name, "glXCreateWindow" )) return (CR_PROC) VBOXGLXTAG(glXCreateWindow);
    87     if (!crStrcmp( name, "glXGetVisualFromFBConfig" )) return (CR_PROC) VBOXGLXTAG(glXGetVisualFromFBConfig);
    88     if (!crStrcmp( name, "glXDestroyWindow" )) return (CR_PROC) VBOXGLXTAG(glXDestroyWindow);
    89     if (!crStrcmp( name, "glXDestroyPixmap" )) return (CR_PROC) VBOXGLXTAG(glXDestroyPixmap);
    9087
    9188    if (name) crDebug("Returning NULL for %s", name);
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