diff options
Diffstat (limited to 'src/surface.c')
-rw-r--r-- | src/surface.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/surface.c b/src/surface.c index 700074c..cbc6c94 100644 --- a/src/surface.c +++ b/src/surface.c @@ -30,6 +30,12 @@ void surface_draw( struct color *color, struct image *texture) { + wl_egl_window_resize( + surface->egl.window, + surface->width, + surface->height, + 0, + 0); egl_make_current(&surface->egl); gl_clear(&surface->gl, color); @@ -46,5 +52,7 @@ void surface_draw( gl_draw_texture(&surface->gl, texture, x, y, width, height); } + wl_surface_damage_buffer(surface->wl_surface, 0, 0, INT32_MAX, INT32_MAX); + egl_swap_buffers(&surface->egl); } |