VirtualBox

Changeset 3468 in vbox for trunk/src/VBox/Additions/WINNT


Ignore:
Timestamp:
Jul 5, 2007 2:18:32 PM (18 years ago)
Author:
vboxsync
Message:

Extension detection updates

Location:
trunk/src/VBox/Additions/WINNT/Graphics/OpenGL
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/OpenGL/VBoxOGL.h

    r3462 r3468  
    2626#define WINGDIAPI
    2727#include "GL/gl.h"
     28#define WGL_WGLEXT_PROTOTYPES
     29#include <VBox/HostServices/wglext.h>
    2830
    2931#include <iprt/cdefs.h>
  • trunk/src/VBox/Additions/WINNT/Graphics/OpenGL/glext.cpp

    r3464 r3468  
    2424 */
    2525
     26#define VBOX_OGL_WITH_EXTENSION_ARRAY
    2627#include "VBoxOGL.h"
    27 #define WGL_WGLEXT_PROTOTYPES
    28 #include <VBox/HostServices/wglext.h>
    29 
    30 typedef struct
    31 {
    32     const char *pszExtName;
    33     const char *pszExtFunctionName;
    34     RTUINTPTR   pfnFunction;
    35     bool        fAvailable;
    36 } OPENGL_EXT, *POPENGL_EXT;
    37 
    38 static OPENGL_EXT OpenGLExtensions[] =
    39 {
    40     {   "WGL_EXT_swap_control",             "wglSwapIntervalEXT",               (RTUINTPTR)wglSwapIntervalEXT,                      false },
    41     {   "WGL_EXT_swap_control",             "wglGetSwapIntervalEXT",            (RTUINTPTR)wglGetSwapIntervalEXT,                   false },
    42 };
    4328
    4429
     
    6348PROC APIENTRY DrvGetProcAddress(LPCSTR lpszProc)
    6449{
    65     PROC pfnProc;
     50    PROC pfnProc = NULL;
    6651
    6752    for (int i=0;i<RT_ELEMENTS(OpenGLExtensions);i++)
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