mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 10:00:45 -05:00
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:
parent
aa498072e0
commit
577d65c2c9
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user