From e4a781b489a7800d0adb3028139b84d988e83c1a Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 29 Sep 2015 21:47:30 +0200 Subject: [PATCH] (GX) Buildfix --- gfx/drivers/gx_gfx.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gfx/drivers/gx_gfx.c b/gfx/drivers/gx_gfx.c index bb91009fa0..abb5513104 100644 --- a/gfx/drivers/gx_gfx.c +++ b/gfx/drivers/gx_gfx.c @@ -842,12 +842,18 @@ static void convert_texture32(const uint32_t *_src, uint32_t *_dst, static void gx_resize(void *data) { + unsigned width, height; int x = 0, y = 0; - unsigned width = gx->vp.full_width, height = gx->vp.full_height; gx_video_t *gx = (gx_video_t*)data; settings_t *settings = config_get_ptr(); const global_t *global = (const global_t*)global_get_ptr(); + if (!gx) + return; + + width = gx->vp.full_width; + height = gx->vp.full_height; + #ifdef HW_RVL VIDEO_SetTrapFilter(global->console.softfilter_enable); #endif