浏览代码

Examples: OpenGL3: Fixed gl3w.c for Linux when compiled with C++ compiler (#411)

ocornut 10 年之前
父节点
当前提交
dc86a8a0bf
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      examples/libs/gl3w/GL/gl3w.c

+ 1 - 1
examples/libs/gl3w/GL/gl3w.c

@@ -82,7 +82,7 @@ static void *get_proc(const char *proc)
 {
 {
 	void *res;
 	void *res;
 
 
-	res = glXGetProcAddress((const GLubyte *) proc);
+	res = (void*)glXGetProcAddress((const GLubyte *) proc);
 	if (!res)
 	if (!res)
 		res = dlsym(libgl, proc);
 		res = dlsym(libgl, proc);
 	return res;
 	return res;