mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-27 06:11:51 +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
|
||||
{
|
||||
#ifdef HAVE_OPENGLES2
|
||||
glTexImage2D(GL_TEXTURE_2D,
|
||||
0, GL_RGBA,
|
||||
gl->fbo_rect[i].width, gl->fbo_rect[i].height, 0,
|
||||
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