From 449cdfe36fae84bfe48c16720833fd7ad5672338 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 8 Oct 2015 06:25:58 +0200 Subject: [PATCH] Fix shader derp --- gfx/video_shader_driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gfx/video_shader_driver.c b/gfx/video_shader_driver.c index ca5a0d4486..4f0c0f98f9 100644 --- a/gfx/video_shader_driver.c +++ b/gfx/video_shader_driver.c @@ -86,7 +86,7 @@ struct video_shader *video_shader_driver_get_current_shader(void) void video_shader_scale(unsigned idx, const shader_backend_t *shader, struct gfx_fbo_scale *scale) { - if (!scale || shader) + if (!scale || !shader) return; scale->valid = false;