mesa: Don't set dispatch pointer for glResizeBuffersMESA in ES2
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 5 Sep 2012 21:04:13 +0000 (14:04 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 28 Sep 2012 15:19:53 +0000 (08:19 -0700)
NOTE: This is a candidate for the 9.0 branch

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/main/api_exec.c

index c0dacab1e45cc023652d77ab94ad1f54552bd88f..1574261a1c2c69a62c5c9408e9ec10e237081123 100644 (file)
@@ -458,7 +458,9 @@ _mesa_create_exec_table(struct gl_context *ctx)
 
    /* 196. GL_MESA_resize_buffers */
 #if _HAVE_FULL_GL
-   SET_ResizeBuffersMESA(exec, _mesa_ResizeBuffersMESA);
+   if (_mesa_is_desktop_gl(ctx)) {
+      SET_ResizeBuffersMESA(exec, _mesa_ResizeBuffersMESA);
+   }
 #endif
 
    /* 197. GL_MESA_window_pos */