OSDN Git Service

glapi: Fix loading of old DRI drivers.
authorChia-I Wu <olv@lunarg.com>
Tue, 27 Apr 2010 15:19:27 +0000 (23:19 +0800)
committerChia-I Wu <olv@lunarg.com>
Tue, 27 Apr 2010 15:19:27 +0000 (23:19 +0800)
The removal of _glapi_noop_enable_warnings and _glapi_set_warning_func
in e4f168a6f4911a096be97d2e83ef8ad9c5862ec0 prevents DRI drivers built
before the commit from loading.  Add stub versions of the functions to
make them load again.

src/mesa/glapi/glapi_nop.c

index df9c587..4257b1f 100644 (file)
 
 #include "glapi/glapi.h"
 
+
+/*
+ * These stubs are kept so that the old DRI drivers still load.
+ */
+PUBLIC void
+_glapi_noop_enable_warnings(GLboolean enable);
+
+PUBLIC void
+_glapi_set_warning_func(_glapi_proc func);
+
+void
+_glapi_noop_enable_warnings(GLboolean enable)
+{
+}
+
+void
+_glapi_set_warning_func(_glapi_proc func)
+{
+}
+
 #ifdef DEBUG
 
 /**