diff options
author | Ian Romanick <[email protected]> | 2017-05-22 11:14:32 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2017-05-23 15:02:29 -0700 |
commit | 7009955281260fbb488736706679eb9fa73493d4 (patch) | |
tree | 4d24cabf7d1817e3235e6cc8340f21d4a20d01a7 /src/mesa/main/arrayobj.c | |
parent | 0781b58b3a4adaa33cb9788af81f04a617cc07fd (diff) |
mesa: Remove GL_APPLE_vertex_array_object stubs
Mark the functions 'exec="skip"' in the XML instead. libGL will still
have the functions, but the driver won't try to use them. I verified
that this commit works with piglit's 'object-namespace-pollution glClear
vertex-array' on x64 with a driver built from mesa-12.0.3 tag.
In fairness, this test also works with a libGL built from 7927d03. I
believe it continues to work because on non-Windows platforms we
generate some extra, dummy dispatch functions that can be used when a
driver requests a function unknown to libGL. This was done to provide
some "forward" compatibility with drivers that need more functions.
This doesn't work on Windows because the Windows calling convention is
for the callee to clean up the stack. That's the theory anyway.
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/mesa/main/arrayobj.c')
-rw-r--r-- | src/mesa/main/arrayobj.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/mesa/main/arrayobj.c b/src/mesa/main/arrayobj.c index b98622932c5..82c00fbe826 100644 --- a/src/mesa/main/arrayobj.c +++ b/src/mesa/main/arrayobj.c @@ -473,14 +473,6 @@ _mesa_BindVertexArray( GLuint id ) } -void GLAPIENTRY -_mesa_BindVertexArrayAPPLE(GLuint id) -{ - GET_CURRENT_CONTEXT(ctx); - _mesa_problem(ctx, "APPLE_vertex_array_object is not supported!"); -} - - /** * Delete a set of array objects. * @@ -587,14 +579,6 @@ _mesa_GenVertexArrays(GLsizei n, GLuint *arrays) } -void GLAPIENTRY -_mesa_GenVertexArraysAPPLE(GLsizei n, GLuint *arrays) -{ - GET_CURRENT_CONTEXT(ctx); - _mesa_problem(ctx, "APPLE_vertex_array_object is not supported!"); -} - - /** * ARB_direct_state_access * Generates ID's and creates the array objects. |