mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-01 18:20:10 +01:00
mesa: relax draw api validation on ES2
Patch fixes failing test in WebGL conformance test 'point-no-attributes' when running Chrome on OpenGL ES. (Shader program may draw points using constant data in shader.) No Piglit regressions. Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
3914dc579e
commit
f4b4ae8c24
1 changed files with 2 additions and 3 deletions
|
|
@ -112,9 +112,8 @@ check_valid_to_render(struct gl_context *ctx, const char *function)
|
|||
|
||||
switch (ctx->API) {
|
||||
case API_OPENGLES2:
|
||||
/* For ES2, we can draw if any vertex array is enabled (and we
|
||||
* should always have a vertex program/shader). */
|
||||
if (ctx->Array.VAO->_Enabled == 0x0 || !ctx->VertexProgram._Current)
|
||||
/* For ES2, we can draw if we have a vertex program/shader). */
|
||||
if (!ctx->VertexProgram._Current)
|
||||
return GL_FALSE;
|
||||
break;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue