Get rid of variable core_context_inited

This commit is contained in:
twinaphex 2016-05-05 05:53:50 +02:00
parent d176f2d48f
commit a22b99838d

View File

@ -34,8 +34,7 @@ static const shader_backend_t *shader_ctx_drivers[] = {
NULL NULL
}; };
static const shader_backend_t *video_shader_set_backend(enum rarch_shader_type type, static const shader_backend_t *video_shader_set_backend(enum rarch_shader_type type)
bool core_context_inited)
{ {
switch (type) switch (type)
{ {
@ -190,8 +189,7 @@ bool video_shader_driver_ctl(enum video_shader_driver_ctl_state state, void *dat
if (!init->shader || !init->shader->init) if (!init->shader || !init->shader->init)
{ {
init->shader = video_shader_set_backend(init->shader_type, init->shader = video_shader_set_backend(init->shader_type);
init->gl.core_context_enabled);
if (!init->shader) if (!init->shader)
return false; return false;