- Timestamp:
- Dec 16, 2018 3:01:28 PM (6 years ago)
- Location:
- trunk/src/VBox/Devices/Graphics
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-glLdr.cpp
r76248 r76253 82 82 #else 83 83 # define OGLGETPROCADDRESS MyGLXGetProcAddress 84 static void *MyGLXGetProcAddress(const char *pszSymbol)84 static PFNRT MyGLXGetProcAddress(const char *pszSymbol) 85 85 { 86 86 int rc; … … 99 99 } 100 100 101 typedef void *(* PFNGLXGETPROCADDRESS)(const GLubyte * procName);101 typedef PFNRT (* PFNGLXGETPROCADDRESS)(const GLubyte * procName); 102 102 static PFNGLXGETPROCADDRESS s_glXGetProcAddress = NULL; 103 103 if (s_glXGetProcAddress == NULL) … … 112 112 } 113 113 114 void *p = s_glXGetProcAddress((const GLubyte *)pszSymbol);114 PFNRT p = s_glXGetProcAddress((const GLubyte *)pszSymbol); 115 115 if (RT_VALID_PTR(p)) 116 116 return p; … … 126 126 127 127 #define GLGETPROC_(ProcName, NameSuffix) do { \ 128 *( void **)&pfn_##ProcName = OGLGETPROCADDRESS(#ProcName NameSuffix); \128 *(PFNRT *)&pfn_##ProcName = OGLGETPROCADDRESS(#ProcName NameSuffix); \ 129 129 AssertLogRelMsgReturn(pfn_##ProcName, ("%s missing\n", #ProcName NameSuffix), VERR_NOT_IMPLEMENTED); \ 130 130 } while(0) … … 289 289 } 290 290 291 void *glLdrGetProcAddress(const char *pszSymbol)291 PFNRT glLdrGetProcAddress(const char *pszSymbol) 292 292 { 293 293 return OGLGETPROCADDRESS(pszSymbol); -
trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-glLdr.h
r76247 r76253 22 22 # error "This include file is for VMSVGA3D_OPENGL." 23 23 #endif 24 25 #include <iprt/types.h> 24 26 25 27 /** @todo VBOX_VMSVGA3D_GL_HACK_LEVEL is not necessary when dynamic loading is used. */ … … 79 81 int glLdrInit(void); 80 82 /* Resolve an OpenGL function name. */ 81 void *glLdrGetProcAddress(const char *pszSymbol);83 PFNRT glLdrGetProcAddress(const char *pszSymbol); 82 84 /* Get pointers to extension function. They are available on Windows only when OpenGL context is set. */ 83 85 int glLdrGetExtFunctions(void); -
trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-ogl.cpp
r76252 r76253 65 65 66 66 #ifdef VMSVGA3D_DYNAMIC_LOAD 67 # define OGLGETPROCADDRESS (x) glLdrGetProcAddress(x)67 # define OGLGETPROCADDRESS glLdrGetProcAddress 68 68 #else 69 69 #ifdef RT_OS_WINDOWS
Note:
See TracChangeset
for help on using the changeset viewer.