Skip to content

glamor: fixes GL_INVALID_ENUM errors on ES if there is no quads

Konstantin requested to merge rilian-la-te/xserver:glamor-fix-quads into master

If there is no quads to draw, then we have a possibility to call glDrawElements with count as zero, which will generate GL_INVALID_ENUM error. While this error is harmless, it is annoying.

Signed-off-by: Konstantin ria.freelander@gmail.com

Part of !924 (closed)

CC: @anholt @ofourdan @daenzer @ajax

Edited by Konstantin

Merge request reports

Loading