Addendum for previous commit - buildfixes for PS4 and C89 (cg)

This commit is contained in:
LibretroAdmin 2022-10-26 21:29:35 +02:00
parent d0b3c1742d
commit e8f4268e6e
2 changed files with 3 additions and 3 deletions

View File

@ -1078,9 +1078,9 @@ static void gl_cg_shader_scale(void *data, unsigned idx, struct gfx_fbo_scale *s
{
cg_shader_data_t *cg = (cg_shader_data_t*)data;
if (cg && idx)
*scale = cg->shader->pass[idx - 1].fbo;
*scale = cg->shader->pass[idx - 1].fbo;
else
scale->valid = false;
scale->flags &= ~FBO_SCALE_FLAG_VALID;
}
static unsigned gl_cg_get_prev_textures(void *data)

View File

@ -1092,7 +1092,7 @@ static void *gl_glsl_init(void *data, const char *path)
#endif
#ifdef HAVE_OPENGLES
if (!glsl->shader->flags & SHDR_FLAG_MODERN)
if (!(glsl->shader->flags & SHDR_FLAG_MODERN))
{
RARCH_ERR("[GL]: GLES context is used, but shader is not modern. Cannot use it.\n");
goto error;