mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-29 19:20:48 +00:00
Add params to video_shader_ctx_init
This commit is contained in:
parent
6f0011fd9f
commit
7b88378952
@ -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
|
||||
|
||||
|
@ -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)
|
||||
{
|
||||
switch (init->shader_type)
|
||||
{
|
||||
case RARCH_SHADER_NONE:
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
tmp = init->shader->init(init->data, init->path);
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user