summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorGeorge Sapountzis <gsapountzis@gmail.com>2010-03-11 18:04:03 +0200
committerGeorge Sapountzis <gsapountzis@gmail.com>2010-03-14 22:24:26 +0200
commit8fd7ee1815dd5880f94f13d88225d7be6f549ae6 (patch)
tree8f5fc01bde8d31e4aa299dd64fa01cbc978e4da1 /src/mesa
parent9a649c8eaa38b5f8f5a89c2571ed66a6f51daeba (diff)
glapi: this one should be by THREAD
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/glapi/glapi_entrypoint.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/mesa/glapi/glapi_entrypoint.c b/src/mesa/glapi/glapi_entrypoint.c
index 9bc3878354..3256867b16 100644
--- a/src/mesa/glapi/glapi_entrypoint.c
+++ b/src/mesa/glapi/glapi_entrypoint.c
@@ -126,15 +126,13 @@ fill_in_entrypoint_offset(_glapi_proc entrypoint, GLuint offset)
{
GLubyte * const code = (GLubyte *) entrypoint;
-#if DISPATCH_FUNCTION_SIZE == 32
+#if defined(GLX_USE_TLS)
+ *((unsigned int *)(code + 8)) = 4 * offset;
+#elif defined(THREADS)
*((unsigned int *)(code + 11)) = 4 * offset;
*((unsigned int *)(code + 22)) = 4 * offset;
-#elif DISPATCH_FUNCTION_SIZE == 16 && defined( GLX_USE_TLS )
- *((unsigned int *)(code + 8)) = 4 * offset;
-#elif DISPATCH_FUNCTION_SIZE == 16
- *((unsigned int *)(code + 7)) = 4 * offset;
#else
-# error Invalid DISPATCH_FUNCTION_SIZE!
+ *((unsigned int *)(code + 7)) = 4 * offset;
#endif
}