Add params to video_shader_ctx_init

This commit is contained in:
twinaphex 2016-04-16 05:14:39 +02:00
parent 6f0011fd9f
commit 7b88378952
3 changed files with 15 additions and 1 deletions

View File

@ -291,6 +291,8 @@ static bool gl_shader_init(gl_t *gl)
backend = &gl_glsl_backend;
shader_path = NULL;
}
init_data.gl.core_context_enabled = gl->core_context;
#endif
#endif

View File

@ -137,7 +137,14 @@ bool video_shader_driver_ctl(enum video_shader_driver_ctl_state state, void *dat
void *tmp = NULL;
if (!init->shader || !init->shader->init)
return false;
{
switch (init->shader_type)
{
case RARCH_SHADER_NONE:
default:
return false;
}
}
tmp = init->shader->init(init->data, init->path);

View File

@ -183,7 +183,12 @@ typedef struct shader_backend
typedef struct video_shader_ctx_init
{
enum rarch_shader_type shader_type;
const shader_backend_t *shader;
struct
{
bool core_context_enabled;
} gl;
void *data;
const char *path;
} video_shader_ctx_init_t;