projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
80f5f7d
)
glapi: return int = 0 from NoOpGeneric()
author
Brian Paul
<brianp@vmware.com>
Thu, 25 Mar 2010 22:03:13 +0000
(16:03 -0600)
committer
Brian Paul
<brianp@vmware.com>
Thu, 25 Mar 2010 22:04:47 +0000
(16:04 -0600)
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.
src/mesa/glapi/glapi_nop.c
patch
|
blob
|
history
diff --git
a/src/mesa/glapi/glapi_nop.c
b/src/mesa/glapi/glapi_nop.c
index b1a718a5f0a5dfa89273092e6920d6a1736fd1b7..df9c5872842ef1369fbf5522cf40dbd5309fbbf4 100644
(file)
--- 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