summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2010-03-25 16:03:13 -0600
committerBrian Paul <brianp@vmware.com>2010-03-25 16:04:47 -0600
commit59258498dc6fa51573b176d071644bd3e750b5ac (patch)
tree92fa21d2a94bc098dada6c236c8f8cfef1a3c2fd /src/mesa
parent80f5f7d17afac7b4cbaaad27a43dbf902ca3826e (diff)
glapi: return int = 0 from NoOpGeneric()
If a GL function is called w/out a current rendering context, this stub gets called. It should return 0 so that non-void-valued functions return 0/NULL instead of a random number.
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/glapi/glapi_nop.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/glapi/glapi_nop.c b/src/mesa/glapi/glapi_nop.c
index b1a718a5f0..df9c587284 100644
--- a/src/mesa/glapi/glapi_nop.c
+++ b/src/mesa/glapi/glapi_nop.c
@@ -93,7 +93,7 @@ NoOpUnused(void)
#else
-static void
+static int
NoOpGeneric(void)
{
#if !defined(_WIN32_WCE)
@@ -101,6 +101,7 @@ NoOpGeneric(void)
fprintf(stderr, "GL User Error: calling GL function without a rendering context\n");
}
#endif
+ return 0;
}
#define TABLE_ENTRY(name) (_glapi_proc) NoOpGeneric