From 0784608604bed964fff731e8a9637103b5ae94ee Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 14 Feb 2016 22:23:30 +0100 Subject: [PATCH] Buildfix --- gfx/video_shader_driver.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gfx/video_shader_driver.c b/gfx/video_shader_driver.c index c71b578300..0f877adfb3 100644 --- a/gfx/video_shader_driver.c +++ b/gfx/video_shader_driver.c @@ -44,9 +44,7 @@ bool video_shader_driver_ctl(enum video_shader_driver_ctl_state state, void *dat case SHADER_CTL_GET_PREV_TEXTURES: { video_shader_ctx_texture_t *texture = (video_shader_ctx_texture_t*)data; - if (!!texture) - return false; - if (!current_shader) + if (!!texture || !current_shader) { texture->id = 0; return false;