mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-29 06:51:10 +00:00
wayland: Uncomment erroneously commented out code
I read the code as if (use_gl) instead of if (!use_gl) and commented it
out in bddfd7bb41
. That broke drawing on
Wayland without OpenGL completely.
Whoops.
Now it's back.
This commit is contained in:
parent
060365a9bb
commit
a85a97c1a1
@ -882,14 +882,12 @@ gdk_window_impl_wayland_begin_paint (GdkWindow *window)
|
||||
static void
|
||||
gdk_window_impl_wayland_end_paint (GdkWindow *window)
|
||||
{
|
||||
#if 0
|
||||
GdkWindowImplWayland *impl = GDK_WINDOW_IMPL_WAYLAND (window->impl);
|
||||
cairo_rectangle_int_t rect;
|
||||
int i, n;
|
||||
|
||||
if (impl->staging_cairo_surface &&
|
||||
_gdk_wayland_is_shm_surface (impl->staging_cairo_surface) &&
|
||||
!window->current_paint.use_gl &&
|
||||
!cairo_region_is_empty (window->current_paint.region))
|
||||
{
|
||||
gdk_wayland_window_attach_image (window);
|
||||
@ -921,7 +919,6 @@ gdk_window_impl_wayland_end_paint (GdkWindow *window)
|
||||
|
||||
impl->pending_commit = TRUE;
|
||||
}
|
||||
#endif
|
||||
|
||||
gdk_wayland_window_sync_margin (window);
|
||||
gdk_wayland_window_sync_opaque_region (window);
|
||||
|
Loading…
Reference in New Issue
Block a user