From b778c9a7d4134797e1b6388073c8b26e4cbb9aeb Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 26 Jun 2015 18:25:17 +0200 Subject: [PATCH] (wayland_ctx.c) Move uninitialized variable to the top of the function --- gfx/drivers_context/wayland_ctx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gfx/drivers_context/wayland_ctx.c b/gfx/drivers_context/wayland_ctx.c index 40b251346f..e3d697acc4 100644 --- a/gfx/drivers_context/wayland_ctx.c +++ b/gfx/drivers_context/wayland_ctx.c @@ -596,10 +596,10 @@ static bool gfx_ctx_wl_set_video_mode(void *data, unsigned width, unsigned height, bool fullscreen) { + EGLint egl_attribs[16]; driver_t *driver = driver_get_ptr(); gfx_ctx_wayland_data_t *wl = (gfx_ctx_wayland_data_t*) driver->video_context_data; - EGLint egl_attribs[16]; struct sigaction sa = {{0}}; EGLint *attr = NULL;