mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 13:00:09 +01:00
mesa: fix ES only draw if we have vertex positions
This code was separated from the validation code so it could
use used with KHR_no_error paths. The return values were inverted
to reflect the name of the helper, but here the condtion was
mistakenly inverted rather than the return value.
Fixes: 4df2931a87 (mesa/vbo: move some Draw checks out of validation)
Reported-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
91b8d874da
commit
a4635c84dc
1 changed files with 2 additions and 2 deletions
|
|
@ -193,8 +193,8 @@ skip_validated_draw(struct gl_context *ctx)
|
|||
case API_OPENGLES:
|
||||
/* For OpenGL ES, only draw if we have vertex positions
|
||||
*/
|
||||
if (ctx->Array.VAO->VertexAttrib[VERT_ATTRIB_POS].Enabled)
|
||||
return false;
|
||||
if (!ctx->Array.VAO->VertexAttrib[VERT_ATTRIB_POS].Enabled)
|
||||
return true;
|
||||
break;
|
||||
|
||||
case API_OPENGL_CORE:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue