mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-16 19:48:20 +02:00
mesa/es3.1 : Align OpenGL ES 3.1 glBindVertexBuffer error handling with OpenGL Core
According to OpenGL ES 3.1 specification 10.3.1: "An INVALID_OPERATION error is generated if buffer is not zero or a name returned from a previous call to GenBuffers, or if such a name has since been deleted with DeleteBuffers." This error check was previously limited to OpenGL Core. Signed-off-by: Marta Lofstedt <marta.lofstedt@intel.com>
This commit is contained in:
parent
7f8815bcb9
commit
6c3de8996f
1 changed files with 1 additions and 1 deletions
|
|
@ -916,7 +916,7 @@ _mesa_handle_bind_buffer_gen(struct gl_context *ctx,
|
|||
{
|
||||
struct gl_buffer_object *buf = *buf_handle;
|
||||
|
||||
if (!buf && ctx->API == API_OPENGL_CORE) {
|
||||
if (!buf && (ctx->API == API_OPENGL_CORE || _mesa_is_gles31(ctx))) {
|
||||
_mesa_error(ctx, GL_INVALID_OPERATION, "%s(non-gen name)", caller);
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue