diff options
author | Benjamin Otte <otte@redhat.com> | 2019-01-22 04:30:47 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2019-01-22 04:33:12 +0100 |
commit | 359bc7695cb31a3b6b91626dd4f0d4082b4154d7 (patch) | |
tree | 5fedf4e4900dc870993d1290e176946822175c2e /gdk/gdkgltexture.c | |
parent | 7723749e00b14d62609942937ae0b8344665beaa (diff) | |
download | gtk+-359bc7695cb31a3b6b91626dd4f0d4082b4154d7.tar.gz |
build: Reintroduce warning flags from autotools
Some of the flags got lost in the meson transition or were demoted from
error flags to warning flags.
This commit reintroduces them.
It also includes fixes for the code that had warnings with those flags.
The big one being -Wshadow.
Diffstat (limited to 'gdk/gdkgltexture.c')
-rw-r--r-- | gdk/gdkgltexture.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdk/gdkgltexture.c b/gdk/gdkgltexture.c index 618aa45f4c..e110b6670b 100644 --- a/gdk/gdkgltexture.c +++ b/gdk/gdkgltexture.c @@ -91,10 +91,10 @@ gdk_gl_texture_download (GdkTexture *texture, } else { - GdkSurface *surface; + GdkSurface *gl_surface; - surface = gdk_gl_context_get_surface (self->context); - gdk_cairo_draw_from_gl (cr, surface, self->id, GL_TEXTURE, 1, + gl_surface = gdk_gl_context_get_surface (self->context); + gdk_cairo_draw_from_gl (cr, gl_surface, self->id, GL_TEXTURE, 1, area->x, area->y, area->width, area->height); } |