|
|
@ -86,12 +86,12 @@ |
|
|
|
#else // GLX
|
|
|
|
#else // GLX
|
|
|
|
#include <GL/glx.h> |
|
|
|
#include <GL/glx.h> |
|
|
|
|
|
|
|
|
|
|
|
#define CV_GL_GET_PROC_ADDRESS(name) (*glXGetProcAddressARB)((const GLubyte*) name) |
|
|
|
#define CV_GL_GET_PROC_ADDRESS(name) glXGetProcAddressARB((const GLubyte*) name) |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
static void* IntGetProcAddress(const char* name) |
|
|
|
static void* IntGetProcAddress(const char* name) |
|
|
|
{ |
|
|
|
{ |
|
|
|
void* func = CV_GL_GET_PROC_ADDRESS(name); |
|
|
|
void* func = (void*) CV_GL_GET_PROC_ADDRESS(name); |
|
|
|
if (!func) |
|
|
|
if (!func) |
|
|
|
{ |
|
|
|
{ |
|
|
|
std::ostringstream msg; |
|
|
|
std::ostringstream msg; |
|
|
|