summaryrefslogtreecommitdiff
path: root/glx/indirect_util.c
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2013-07-10 10:00:46 -0400
committerAdam Jackson <ajax@redhat.com>2013-10-29 12:29:16 -0400
commitbe6680967a479eedbcab2fe1718c5f981e1029c7 (patch)
tree9a7105fc1eea53f136b13ec355a3c425aaf25a6f /glx/indirect_util.c
parent8aacf47e1778d8b72811b025a82452b933d3c1f2 (diff)
glx: convert to direct GL dispatch (v2)
We now expect to be linked against something that provides the GL API, instead of manually grubbing about in the DRI driver's dispatch table. Since the GLX we expose calls GL functions that are meant to be looked up dynamically, also add a way to thunk through to GetProcAddress. This includes a refresh of the generated sources, which requires a correspondingly new Mesa. The GetProcAddress stubs are at the moment merely enough to make this link against Mesa 9.2, but should really be provided for everything not in the OpenGL 1.2 ABI. v2: Explicitly hide the GetProcAddress stubs so we can't conflict with libGL symbols; fix leading tab/space issues [anholt] Reviewed-by: Keith Packard <keithp@keithp.com> Signed-off-by: Adam Jackson <ajax@redhat.com>
Diffstat (limited to 'glx/indirect_util.c')
-rw-r--r--glx/indirect_util.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/glx/indirect_util.c b/glx/indirect_util.c
index a30b1f880..f9d1243b1 100644
--- a/glx/indirect_util.c
+++ b/glx/indirect_util.c
@@ -39,10 +39,6 @@
#include "glxserver.h"
#include "glxbyteorder.h"
#include "singlesize.h"
-#include "glapitable.h"
-#include "glapi.h"
-#include "glthread.h"
-#include "dispatch.h"
#include "glxext.h"
#include "indirect_table.h"
#include "indirect_util.h"
@@ -57,8 +53,7 @@ __glGetBooleanv_variable_size(GLenum e)
if (e == GL_COMPRESSED_TEXTURE_FORMATS) {
GLint temp;
- CALL_GetIntegerv(GET_DISPATCH(),
- (GL_NUM_COMPRESSED_TEXTURE_FORMATS, &temp));
+ glGetIntegerv(GL_NUM_COMPRESSED_TEXTURE_FORMATS, &temp);
return temp;
}
else {