mirror of
https://github.com/libretro/RetroArch
synced 2025-04-09 21:45:45 +00:00
Avoid potential performance regressions.
PSGL uses GL_ARGB_SCE, and not GL_RGBA for one ...
This commit is contained in:
parent
18fd41f77e
commit
12288e9b8c
8
gfx/gl.c
8
gfx/gl.c
@ -538,10 +538,18 @@ static void gl_create_fbo_textures(void *data)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
#ifdef HAVE_OPENGLES2
|
||||||
glTexImage2D(GL_TEXTURE_2D,
|
glTexImage2D(GL_TEXTURE_2D,
|
||||||
0, GL_RGBA,
|
0, GL_RGBA,
|
||||||
gl->fbo_rect[i].width, gl->fbo_rect[i].height, 0,
|
gl->fbo_rect[i].width, gl->fbo_rect[i].height, 0,
|
||||||
GL_RGBA, GL_UNSIGNED_BYTE, NULL);
|
GL_RGBA, GL_UNSIGNED_BYTE, NULL);
|
||||||
|
#else
|
||||||
|
// Avoid potential performance reductions on particular platforms.
|
||||||
|
glTexImage2D(GL_TEXTURE_2D,
|
||||||
|
0, RARCH_GL_INTERNAL_FORMAT32,
|
||||||
|
gl->fbo_rect[i].width, gl->fbo_rect[i].height, 0,
|
||||||
|
RARCH_GL_TEXTURE_TYPE32, RARCH_GL_FORMAT32, NULL);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user