mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-08 04:10:10 +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> (cherry picked from commita4635c84dc)
This commit is contained in:
parent
c77ae9744e
commit
f01cd4feeb
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