fixed build under linux with OpenGL

This commit is contained in:
Vladislav Vinogradov 2012-12-10 11:05:51 +04:00
parent 79c3a8e03b
commit 5fe9bb717d

View File

@ -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;