summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorGeorge Sapountzis <[email protected]>2010-02-27 02:48:27 +0200
committerGeorge Sapountzis <[email protected]>2010-03-01 20:54:18 +0200
commit57d31591d10d656dbc8bea1d162dec90518e7b8c (patch)
tree235e7b4de2d3473477ff9f8fb05ca683646f0a5e /src/mesa
parenta4ec52f245746b477b673e7cfb9b73d711bfa0d6 (diff)
glapi.h: misc cosmetic
- revert context/dispatch order, similar to glapi.c - stray GL_GLEXT_PROTOTYPES
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/glapi/glapi.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/mesa/glapi/glapi.h b/src/mesa/glapi/glapi.h
index 6bfe741b7ef..6e28e663528 100644
--- a/src/mesa/glapi/glapi.h
+++ b/src/mesa/glapi/glapi.h
@@ -44,8 +44,6 @@
#ifndef _GLAPI_H
#define _GLAPI_H
-#define GL_GLEXT_PROTOTYPES
-
#include "glthread.h"
@@ -59,8 +57,8 @@ typedef void (*_glapi_proc)(void); /* generic function pointer */
#define _glapi_get_dispatch _mglapi_get_dispatch
#define _glapi_set_context _mglapi_set_context
#define _glapi_get_context _mglapi_get_context
-#define _glapi_Context _mglapi_Context
#define _glapi_Dispatch _mglapi_Dispatch
+#define _glapi_Context _mglapi_Context
#endif
@@ -73,12 +71,6 @@ typedef void (*_glapi_proc)(void); /* generic function pointer */
#endif
-/*
- * Number of extension functions which we can dynamically add at runtime.
- */
-#define MAX_EXTENSION_FUNCS 300
-
-
/**
** Define the GET_DISPATCH() and GET_CURRENT_CONTEXT() macros.
**
@@ -86,9 +78,10 @@ typedef void (*_glapi_proc)(void); /* generic function pointer */
**/
#if defined (GLX_USE_TLS)
-extern const void *_glapi_Context;
extern const struct _glapi_table *_glapi_Dispatch;
+extern const void *_glapi_Context;
+
extern __thread struct _glapi_table * _glapi_tls_Dispatch
__attribute__((tls_model("initial-exec")));
@@ -101,9 +94,10 @@ extern __thread void * _glapi_tls_Context
#else
-extern void *_glapi_Context;
extern struct _glapi_table *_glapi_Dispatch;
+extern void *_glapi_Context;
+
# ifdef THREADS
# define GET_DISPATCH() \
@@ -183,4 +177,10 @@ extern const char *
_glapi_get_proc_name(unsigned int offset);
+/*
+ * Number of extension functions which we can dynamically add at runtime.
+ */
+#define MAX_EXTENSION_FUNCS 300
+
+
#endif