gtk: fix build
PATCH 1/1 gtk: fix build
Commit "9d8256e virgl: pass whole GL scanout dimensions" missed the opengl code path for gtk versions >= 3.16. Update that one too and fix the build with recent gtk versions.
Reported-by Dr. David Alan Gilbert <[email protected]>
Signed-off-by Gerd Hoffmann <[email protected]>
--- include/ui/gtk.h | 1 + ui/gtk-gl-area.c | 1 + 2 files changed, 2 insertions(+)
include/ui/gtk.h +1 -0
@@ -124,6 +124,7 @@ void gd_gl_area_destroy_context(DisplayChangeListener *dcl, QEMUGLContext ctx);void gd_gl_area_scanout (DisplayChangeListener *dcl,uint32_t backing_id,bool backing_y_0_top, +uint32_t backing_width,uint32_t backing_height,uint32_t x,uint32_t y,uint32_t w,uint32_t h); void gd_gl_area_scanout_flush(DisplayChangeListener *dcl,
ui/gtk-gl-area.c +1 -0
@@ -169,6 +169,7 @@ void gd_gl_area_destroy_context(DisplayChangeListener *dcl, QEMUGLContext ctx)void gd_gl_area_scanout (DisplayChangeListener *dcl,uint32_t backing_id,bool backing_y_0_top, +uint32_t backing_width,uint32_t backing_height,uint32_t x,uint32_t y,uint32_t w,uint32_t h) {
Signature · 1 line
1.8.3.1
Quoted 36 lines · Gerd Hoffmann
Commit "9d8256e virgl: pass whole GL scanout dimensions" missed the opengl code path for gtk versions >= 3.16. Update that one too and fix the build with recent gtk versions.
Reported-by Dr. David Alan Gilbert <[email protected]>Signed-off-by Gerd Hoffmann <[email protected]>--- include/ui/gtk.h | 1 + ui/gtk-gl-area.c | 1 + 2 files changed, 2 insertions(+)include/ui/gtk.h +1
-0@@ -124,6 +124,7 @@ void gd_gl_area_destroy_context(DisplayChangeListener *dcl, QEMUGLContext ctx);void gd_gl_area_scanout (DisplayChangeListener *dcl,uint32_t backing_id,bool backing_y_0_top, +uint32_t backing_width,uint32_t backing_height,uint32_t x,uint32_t y,uint32_t w,uint32_t h); void gd_gl_area_scanout_flush(DisplayChangeListener *dcl,ui/gtk-gl-area.c +1
-1@@ -169,6 +169,7 @@ void gd_gl_area_destroy_context(DisplayChangeListener *dcl, QEMUGLContext ctx)void gd_gl_area_scanout (DisplayChangeListener *dcl,uint32_t backing_id,bool backing_y_0_top, +uint32_t backing_width,uint32_t backing_height,uint32_t x,uint32_t y,uint32_t w,uint32_t h) { --
Quoted 1 line
1.8.3.1
Thanks; applied to master as a build fix.
-- PMM