Remove the disabling of layer constants for GLES2

The GLSL shader generation supports layer combine constants so there's
no need to disable it for GLES2. It looks like there was also code for
it in the GLES2 wrapper so I'm not sure why it was disabled in the
first place.
This commit is contained in:
Neil Roberts 2010-11-22 16:44:11 +00:00
parent 7da3610e82
commit 38ad560b19

View File

@ -185,16 +185,6 @@ validate_tex_combine_statements (CoglBlendStringStatement *statements,
"not texture combining";
goto error;
}
#ifdef HAVE_COGL_GLES2
if (arg->source.info->type == COGL_BLEND_STRING_COLOR_SOURCE_CONSTANT)
{
error_string = "Using a constant for texture combining isn't "
"currently supported with GLES 2 "
"(TODO: glTexEnvf)";
detail = COGL_BLEND_STRING_ERROR_GPU_UNSUPPORTED_ERROR;
goto error;
}
#endif
}
}