From: Brian Paul Date: Thu, 25 Mar 2010 22:03:13 +0000 (-0600) Subject: glapi: return int = 0 from NoOpGeneric() X-Git-Tag: 062012170305~12852^2~110 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=59258498dc6fa51573b176d071644bd3e750b5ac;p=profile%2Fivi%2Fmesa.git 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. --- diff --git a/src/mesa/glapi/glapi_nop.c b/src/mesa/glapi/glapi_nop.c index b1a718a..df9c587 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