forked from AuroraMiddleware/gtk
gl renderer: Fix color comparison
This commit is contained in:
parent
a29b8fbef4
commit
2e6e6c1779
@ -581,7 +581,8 @@ ops_set_color (RenderOpBuilder *builder,
|
||||
ProgramState *current_program_state = get_current_program_state (builder);
|
||||
OpColor *op;
|
||||
|
||||
if (gdk_rgba_equal (color, ¤t_program_state->color))
|
||||
if (current_program_state->color &&
|
||||
gdk_rgba_equal (color, current_program_state->color))
|
||||
return;
|
||||
|
||||
current_program_state->color = color;
|
||||
|
Loading…
Reference in New Issue
Block a user