mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-05 16:20:10 +00:00
X11: Fix crash in gdk_x11_gl_context_texture_from_surface
We need to look at the impl_window for the gl rendering, not the subwindow we're rendering into.
This commit is contained in:
parent
1e961001af
commit
142368f095
@ -368,7 +368,7 @@ gdk_x11_gl_context_texture_from_surface (GdkGLContext *context,
|
||||
if (glx_pixmap == NULL)
|
||||
return FALSE;
|
||||
|
||||
window = gdk_gl_context_get_window (gdk_gl_context_get_current ());
|
||||
window = gdk_gl_context_get_window (gdk_gl_context_get_current ())->impl_window;
|
||||
window_scale = gdk_window_get_scale_factor (window);
|
||||
window_height = gdk_window_get_height (window);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user