mesa: only verify that enabled arrays have backing buffers
We were previously also verifying that no backing buffers were available
when an array wasn't enabled. This is has no basis in the spec, and it
causes GLupeN64 to fail as a result.
Fixes: c2e146f487
("mesa: error out in indirect draw when vertex bindings mismatch")
Cc: mesa-stable@lists.freedesktop.org
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
This commit is contained in:
parent
51244859e3
commit
7c16552f8d
|
@ -925,7 +925,7 @@ valid_draw_indirect(struct gl_context *ctx,
|
|||
* buffer bound.
|
||||
*/
|
||||
if (_mesa_is_gles31(ctx) &&
|
||||
ctx->Array.VAO->_Enabled != ctx->Array.VAO->VertexAttribBufferMask) {
|
||||
ctx->Array.VAO->_Enabled & ~ctx->Array.VAO->VertexAttribBufferMask) {
|
||||
_mesa_error(ctx, GL_INVALID_OPERATION, "%s(No VBO bound)", name);
|
||||
return GL_FALSE;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue