mirror of
https://github.com/libretro/RetroArch
synced 2025-04-07 13:23:32 +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;
|
backend = &gl_glsl_backend;
|
||||||
shader_path = NULL;
|
shader_path = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
init_data.gl.core_context_enabled = gl->core_context;
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -137,7 +137,14 @@ bool video_shader_driver_ctl(enum video_shader_driver_ctl_state state, void *dat
|
|||||||
void *tmp = NULL;
|
void *tmp = NULL;
|
||||||
|
|
||||||
if (!init->shader || !init->shader->init)
|
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);
|
tmp = init->shader->init(init->data, init->path);
|
||||||
|
|
||||||
|
@ -183,7 +183,12 @@ typedef struct shader_backend
|
|||||||
|
|
||||||
typedef struct video_shader_ctx_init
|
typedef struct video_shader_ctx_init
|
||||||
{
|
{
|
||||||
|
enum rarch_shader_type shader_type;
|
||||||
const shader_backend_t *shader;
|
const shader_backend_t *shader;
|
||||||
|
struct
|
||||||
|
{
|
||||||
|
bool core_context_enabled;
|
||||||
|
} gl;
|
||||||
void *data;
|
void *data;
|
||||||
const char *path;
|
const char *path;
|
||||||
} video_shader_ctx_init_t;
|
} video_shader_ctx_init_t;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user