mirror of
https://github.com/libretro/RetroArch
synced 2025-04-07 13:23:32 +00:00
Merge pull request #4177 from loganmc10/patch-2
Use RGBA8 for FBO texture internal format on GLES3
This commit is contained in:
commit
9656c5e7a1
@ -642,7 +642,7 @@ static void gl_init_textures(gl_t *gl, const video_info_t *video)
|
|||||||
texture_fmt = gl->texture_fmt;
|
texture_fmt = gl->texture_fmt;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_OPENGLES2
|
#ifdef HAVE_OPENGLES
|
||||||
/* GLES is picky about which format we use here.
|
/* GLES is picky about which format we use here.
|
||||||
* Without extensions, we can *only* render to 16-bit FBOs. */
|
* Without extensions, we can *only* render to 16-bit FBOs. */
|
||||||
|
|
||||||
@ -650,7 +650,10 @@ static void gl_init_textures(gl_t *gl, const video_info_t *video)
|
|||||||
{
|
{
|
||||||
if (gl_check_capability(GL_CAPS_ARGB8))
|
if (gl_check_capability(GL_CAPS_ARGB8))
|
||||||
{
|
{
|
||||||
internal_fmt = GL_RGBA;
|
if (gl_check_capability(GL_CAPS_GLES3_SUPPORTED))
|
||||||
|
internal_fmt = GL_RGBA8_OES;
|
||||||
|
else
|
||||||
|
internal_fmt = GL_RGBA;
|
||||||
texture_type = GL_RGBA;
|
texture_type = GL_RGBA;
|
||||||
texture_fmt = GL_UNSIGNED_BYTE;
|
texture_fmt = GL_UNSIGNED_BYTE;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user