Avoid potential performance regressions.

PSGL uses GL_ARGB_SCE, and not GL_RGBA for one ...
This commit is contained in:
Themaister 2013-05-19 11:25:56 +02:00
parent 18fd41f77e
commit 12288e9b8c

View File

@ -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
}
}