Changeset 3472 in vbox
- Timestamp:
- Jul 5, 2007 2:55:58 PM (18 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/HostServices/VBoxOGLOp.h
r3468 r3472 1861 1861 const char *pszExtName; 1862 1862 const char *pszExtFunctionName; 1863 #ifdef VBOX_OGL_GUEST_SIDE 1863 1864 RTUINTPTR pfnFunction; 1865 #else 1866 RTUINTPTR *ppfnFunction; 1867 #endif 1864 1868 bool fAvailable; 1865 1869 } OPENGL_EXT, *POPENGL_EXT; 1866 1870 1867 1871 #ifdef VBOX_OGL_GUEST_SIDE 1868 #define VBOX_OGL_EXTENSION(a) a1872 #define VBOX_OGL_EXTENSION(a) (RTUINTPTR)a 1869 1873 #else 1870 #define VBOX_OGL_EXTENSION(a) pfn##a1874 #define VBOX_OGL_EXTENSION(a) (RTUINTPTR *)pfn##a 1871 1875 1872 1876 static PFNWGLSWAPINTERVALEXTPROC pfnwglSwapIntervalEXT = NULL; … … 1877 1881 static OPENGL_EXT OpenGLExtensions[] = 1878 1882 { 1879 { "WGL_EXT_swap_control", "wglSwapIntervalEXT", (RTUINTPTR)VBOX_OGL_EXTENSION(wglSwapIntervalEXT), false },1880 { "WGL_EXT_swap_control", "wglGetSwapIntervalEXT", (RTUINTPTR)VBOX_OGL_EXTENSION(wglGetSwapIntervalEXT), false },1883 { "WGL_EXT_swap_control", "wglSwapIntervalEXT", VBOX_OGL_EXTENSION(wglSwapIntervalEXT), false }, 1884 { "WGL_EXT_swap_control", "wglGetSwapIntervalEXT", VBOX_OGL_EXTENSION(wglGetSwapIntervalEXT), false }, 1881 1885 }; 1882 1886 #endif /* VBOX_OGL_WITH_EXTENSION_ARRAY */ -
trunk/src/VBox/HostServices/SharedOpenGL/glext.cpp
r3471 r3472 48 48 if (strstr((char *)pszExtensions, OpenGLExtensions[i].pszExtName)) 49 49 { 50 OpenGLExtensions[i].pfnFunction = vboxDrvIsExtensionAvailable((char *)OpenGLExtensions[i].pszExtFunctionName);51 OpenGLExtensions[i].fAvailable = !!OpenGLExtensions[i].pfnFunction;50 *OpenGLExtensions[i].ppfnFunction = vboxDrvIsExtensionAvailable((char *)OpenGLExtensions[i].pszExtFunctionName); 51 OpenGLExtensions[i].fAvailable = !!*OpenGLExtensions[i].ppfnFunction; 52 52 } 53 53 }
Note:
See TracChangeset
for help on using the changeset viewer.