From 091ae18870768c671013b191bb4c7ea0dbc22213 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 7 Mar 2014 05:32:17 +0100 Subject: [PATCH] (GL) Fixup params to shader->init --- gfx/gl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gfx/gl.c b/gfx/gl.c index 2ff5b4f5f1..8b5912b259 100644 --- a/gfx/gl.c +++ b/gfx/gl.c @@ -259,7 +259,7 @@ static bool gl_shader_init(void *data) if (!ret) { RARCH_ERR("[GL]: Failed to init shader, falling back to stock.\n"); - ret = gl->shader->init(NULL); + ret = gl->shader->init(gl, NULL); } return ret; @@ -2319,10 +2319,10 @@ static bool gl_set_shader(void *data, enum rarch_shader_type type, const char *p glBindTexture(GL_TEXTURE_2D, gl->texture[gl->tex_index]); #endif - if (!gl->shader->init(path)) + if (!gl->shader->init(gl, path)) { RARCH_WARN("[GL]: Failed to set multipass shader. Falling back to stock.\n"); - bool ret = gl->shader->init(NULL); + bool ret = gl->shader->init(gl, NULL); if (!ret) gl->shader = NULL; return false;