summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/bufferobj.c
diff options
context:
space:
mode:
authorMarta Lofstedt <marta.lofstedt@intel.com>2016-01-08 14:55:55 +0100
committerMarta Lofstedt <marta.lofstedt@linux.intel.com>2016-01-19 13:08:42 +0100
commit2bcacc69b9935f073e271527771b4fb42081dcb6 (patch)
tree92b61190ce1f63add318ac4b8cf1c69db431dfb3 /src/mesa/main/bufferobj.c
parentd018619d7f52b9a72d7c010d4afb70653d674f12 (diff)
downloadexternal_mesa3d-2bcacc69b9935f073e271527771b4fb42081dcb6.zip
external_mesa3d-2bcacc69b9935f073e271527771b4fb42081dcb6.tar.gz
external_mesa3d-2bcacc69b9935f073e271527771b4fb42081dcb6.tar.bz2
mesa: Move sanity check of BindVertexBuffer for OpenGL ES 3.1
Sanity check of BindVertexBuffer for OpenGL ES in _mesa_handle_bind_buffer_gen breaks OpenGL ES 2 conformance. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=93426 Signed-off-by: Marta Lofstedt <marta.lofstedt@intel.com> Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Diffstat (limited to 'src/mesa/main/bufferobj.c')
-rw-r--r--src/mesa/main/bufferobj.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c
index 26f873b..8ede1f0 100644
--- a/src/mesa/main/bufferobj.c
+++ b/src/mesa/main/bufferobj.c
@@ -953,7 +953,7 @@ _mesa_handle_bind_buffer_gen(struct gl_context *ctx,
{
struct gl_buffer_object *buf = *buf_handle;
- if (!buf && (ctx->API == API_OPENGL_CORE || _mesa_is_gles31(ctx))) {
+ if (!buf && (ctx->API == API_OPENGL_CORE)) {
_mesa_error(ctx, GL_INVALID_OPERATION, "%s(non-gen name)", caller);
return false;
}