瀏覽代碼

Use explicit cast to try and squelch compile error

rdb 11 年之前
父節點
當前提交
a3d80ae3eb
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      panda/src/glstuff/glGraphicsStateGuardian_src.cxx

+ 1 - 1
panda/src/glstuff/glGraphicsStateGuardian_src.cxx

@@ -476,7 +476,7 @@ reset() {
                              0, NULL, GLCAT.is_debug());
 
       // Enable the callback.
-      _glDebugMessageCallback(&debug_callback, (void*)this);
+      _glDebugMessageCallback((GLDEBUGPROC) &debug_callback, (void*)this);
       if (gl_debug_synchronous) {
         glEnable(GL_DEBUG_OUTPUT_SYNCHRONOUS);
       }