projects
/
gtk+3.0.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b497382
)
Address issue 5711 by checking that the context is not NULL.
author
Phil Stopford
<philstopford@gmail.com>
Thu, 30 Mar 2023 22:34:55 +0000
(22:34 +0000)
committer
Phil Stopford
<philstopford@gmail.com>
Thu, 30 Mar 2023 22:34:55 +0000
(22:34 +0000)
gdk/gdkgl.c
patch
|
blob
|
history
diff --git
a/gdk/gdkgl.c
b/gdk/gdkgl.c
index 61cf16417b47dc91bec81a3b09e726306e6f8e99..666b5e81335a53e93678a3d9c46ff7d409c8c9bb 100644
(file)
--- a/
gdk/gdkgl.c
+++ b/
gdk/gdkgl.c
@@
-367,7
+367,7
@@
gdk_cairo_draw_from_gl (cairo_t *cr,
clip_region = gdk_cairo_region_from_clip (cr);
- if (
gdk_gl_context_get_current () != paint_context
)
+ if (
(gdk_gl_context_get_current () != NULL) && (gdk_gl_context_get_current () != paint_context)
)
sync = glFenceSync (GL_SYNC_GPU_COMMANDS_COMPLETE, 0);
gdk_gl_context_make_current (paint_context);