From dc86a8a0bf755cd9459db541aff939b753bed74f Mon Sep 17 00:00:00 2001 From: ocornut Date: Sun, 22 Nov 2015 17:16:55 +0000 Subject: [PATCH] Examples: OpenGL3: Fixed gl3w.c for Linux when compiled with C++ compiler (#411) --- examples/libs/gl3w/GL/gl3w.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/libs/gl3w/GL/gl3w.c b/examples/libs/gl3w/GL/gl3w.c index bea6e40e4..464e01778 100644 --- a/examples/libs/gl3w/GL/gl3w.c +++ b/examples/libs/gl3w/GL/gl3w.c @@ -82,7 +82,7 @@ static void *get_proc(const char *proc) { void *res; - res = glXGetProcAddress((const GLubyte *) proc); + res = (void*)glXGetProcAddress((const GLubyte *) proc); if (!res) res = dlsym(libgl, proc); return res;