mirror of
https://github.com/brl/mutter.git
synced 2024-12-25 04:22:05 +00:00
cogl-pipeline-opengl: Fix enabling previously disabled units
When enabling a unit that was disabled from a previous flush pipeline it was forgetting to rebind the right texture unit so it wouldn't work. This was causing the redhand to disappear when using the fixed function backend in test-cogl-multitexture if anything else is added to the scene.
This commit is contained in:
parent
17a98875d3
commit
499a370ee3
@ -725,6 +725,7 @@ flush_layers_common_gl_state_cb (CoglPipelineLayer *layer, void *user_data)
|
||||
if (!G_UNLIKELY (cogl_debug_flags & COGL_DEBUG_DISABLE_TEXTURING) &&
|
||||
!unit->enabled)
|
||||
{
|
||||
_cogl_set_active_texture_unit (unit_index);
|
||||
GE (glEnable (unit->current_gl_target));
|
||||
unit->enabled = TRUE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user