[gtk/wip/baedert/gl-rework: 123/176] gl renderer: Fix color comparison
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/gl-rework: 123/176] gl renderer: Fix color comparison
- Date: Sun, 29 Dec 2019 15:16:43 +0000 (UTC)
commit cef5014f0addd7c093c7d5a572d9ccf28d045a89
Author: Timm Bäder <mail baedert org>
Date: Sat Dec 14 15:14:15 2019 +0100
gl renderer: Fix color comparison
gsk/gl/gskglrenderops.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gsk/gl/gskglrenderops.c b/gsk/gl/gskglrenderops.c
index 84774e29aa..c2c7858dfb 100644
--- a/gsk/gl/gskglrenderops.c
+++ b/gsk/gl/gskglrenderops.c
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]