(wayland_ctx.c) Move uninitialized variable to the top of the function

This commit is contained in:
twinaphex 2015-06-26 18:25:17 +02:00
parent 653c76c987
commit b778c9a7d4

View File

@ -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;