fixed build under linux with OpenGL
This commit is contained in:
parent
79c3a8e03b
commit
5fe9bb717d
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user