From 3ea3f5e0a542cfd9f9a3433515fd27e0a5d1b1ac Mon Sep 17 00:00:00 2001 From: Kristian Høgsberg Date: Tue, 7 Sep 2010 14:32:28 -0400 Subject: 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. --- src/glx/glxcurrent.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/glx/glxcurrent.c') diff --git a/src/glx/glxcurrent.c b/src/glx/glxcurrent.c index e2569974c2f..98f66c22898 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 }; /* -- cgit v1.2.3