From 5fe9bb717d93b789d27382948af166287be5b614 Mon Sep 17 00:00:00 2001 From: Vladislav Vinogradov Date: Mon, 10 Dec 2012 11:05:51 +0400 Subject: [PATCH] fixed build under linux with OpenGL --- modules/core/src/gl_core_3_1.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/core/src/gl_core_3_1.cpp b/modules/core/src/gl_core_3_1.cpp index 716d02b89..3bc74faa1 100644 --- a/modules/core/src/gl_core_3_1.cpp +++ b/modules/core/src/gl_core_3_1.cpp @@ -86,12 +86,12 @@ #else // GLX #include - #define CV_GL_GET_PROC_ADDRESS(name) (*glXGetProcAddressARB)((const GLubyte*) name) + #define CV_GL_GET_PROC_ADDRESS(name) glXGetProcAddressARB((const GLubyte*) name) #endif 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) { std::ostringstream msg;