Merge pull request #11681 from crystalct/master

Fix multipass shaders on PS3 - fix #11673
This commit is contained in:
Autechre 2020-12-11 20:18:35 +01:00 committed by GitHub
commit 71ed4db45a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -857,11 +857,16 @@ static void gl2_create_fbo_texture(gl_t *gl,
else
#endif
{
#if defined(HAVE_OPENGLES2) || defined(HAVE_PSGL)
#if defined(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);
#elif defined(HAVE_PSGL)
glTexImage2D(GL_TEXTURE_2D,
0, GL_ARGB_SCE,
gl->fbo_rect[i].width, gl->fbo_rect[i].height, 0,
GL_ARGB_SCE, GL_UNSIGNED_BYTE, NULL);
#else
/* Avoid potential performance
* reductions on particular platforms. */