mirror of
https://github.com/libretro/RetroArch.git
synced 2025-01-24 18:36:31 +00:00
Enforce vertex shader in modern GLSL.
This commit is contained in:
parent
dcdb405267
commit
cdb16feeb4
@ -708,6 +708,13 @@ static unsigned get_xml_shaders(const char *path, struct shader_program *prog, s
|
||||
}
|
||||
else if (strcmp((const char*)cur->name, "fragment") == 0)
|
||||
{
|
||||
if (glsl_modern && !prog[num].vertex)
|
||||
{
|
||||
RARCH_ERR("Modern GLSL was chosen and vertex shader was not provided. This is an error.\n");
|
||||
xmlFree(content);
|
||||
goto error;
|
||||
}
|
||||
|
||||
prog[num].fragment = (char*)content;
|
||||
if (!get_xml_attrs(&prog[num], cur))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user