Don't use the fixed function backend if there is a user program

The fixed function pipeline backend can't handle a user program so it
should bail out if one is given.
This commit is contained in:
Neil Roberts 2010-11-24 17:33:07 +00:00
parent aa498072e0
commit 577d65c2c9

View File

@ -72,6 +72,12 @@ _cogl_pipeline_backend_fixed_start (CoglPipeline *pipeline,
unsigned long pipelines_difference,
int n_tex_coord_attribs)
{
CoglHandle user_program;
user_program = cogl_pipeline_get_user_program (pipeline);
if (user_program != COGL_INVALID_HANDLE)
return FALSE;
_cogl_use_program (0, COGL_PIPELINE_PROGRAM_TYPE_FIXED);
return TRUE;
}