summaryrefslogtreecommitdiff
path: root/src/glx/glxcurrent.c
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2010-09-07 14:32:28 -0400
committerKristian Høgsberg <krh@bitplanet.net>2010-09-07 14:32:28 -0400
commit3ea3f5e0a542cfd9f9a3433515fd27e0a5d1b1ac (patch)
treee3d8dfee118ea1ea390da5f7864d3c0fd362970e /src/glx/glxcurrent.c
parent57d3f71132a59315d47c42a110228a523f9ea23d (diff)
glx: Set an all NULL vtable for dummyContext
This reverts 6a6e6d7b0a84e20f9754af02a575ae34081d310c and initializes dummyContext with an all NULL vtable. The context vtable pointer is supposed to always be non-NULL, but the vtable entries can be NULL.
Diffstat (limited to 'src/glx/glxcurrent.c')
-rw-r--r--src/glx/glxcurrent.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/glx/glxcurrent.c b/src/glx/glxcurrent.c
index e2569974c2..98f66c2289 100644
--- a/src/glx/glxcurrent.c
+++ b/src/glx/glxcurrent.c
@@ -53,7 +53,7 @@
*/
static GLubyte dummyBuffer[__GLX_BUFFER_LIMIT_SIZE];
-
+static struct glx_context_vtable dummyVtable;
/*
** Dummy context used by small commands when there is no current context.
** All the
@@ -66,6 +66,7 @@ struct glx_context dummyContext = {
&dummyBuffer[0],
&dummyBuffer[__GLX_BUFFER_LIMIT_SIZE],
sizeof(dummyBuffer),
+ &dummyVtable
};
/*