From 324aacfbaaab040b381b51ae69548b58a4419617 Mon Sep 17 00:00:00 2001 From: rdb Date: Sun, 1 Sep 2013 12:40:56 +0000 Subject: [PATCH] fix compile error with gcc --- panda/src/wgldisplay/wglGraphicsStateGuardian.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/panda/src/wgldisplay/wglGraphicsStateGuardian.cxx b/panda/src/wgldisplay/wglGraphicsStateGuardian.cxx index 124c3bcacc..dc34fb3b9e 100755 --- a/panda/src/wgldisplay/wglGraphicsStateGuardian.cxx +++ b/panda/src/wgldisplay/wglGraphicsStateGuardian.cxx @@ -585,10 +585,9 @@ get_extra_extensions() { void *wglGraphicsStateGuardian:: do_get_extension_func(const char *prefix, const char *name) { string fullname = string(prefix) + string(name); - return wglGetProcAddress(fullname.c_str()); + return (void*) wglGetProcAddress(fullname.c_str()); } - //////////////////////////////////////////////////////////////////// // Function: wglGraphicsStateGuardian::make_context // Access: Private