mirror of
https://github.com/libretro/RetroArch
synced 2025-03-03 04:14:00 +00:00
More buildfixes
This commit is contained in:
parent
e7599e8952
commit
c1f0fceb4f
@ -1684,6 +1684,7 @@ static INLINE void gl_set_texture_fmts(gl_t *gl, bool rgb32)
|
||||
gl->texture_type = GL_RGBA;
|
||||
}
|
||||
}
|
||||
#ifndef HAVE_OPENGLES
|
||||
else if (gl->have_es2_compat)
|
||||
{
|
||||
RARCH_LOG("[GL]: Using GL_RGB565 for texture uploads.\n");
|
||||
@ -1691,6 +1692,7 @@ static INLINE void gl_set_texture_fmts(gl_t *gl, bool rgb32)
|
||||
gl->texture_type = RARCH_GL_TEXTURE_TYPE16_565;
|
||||
gl->texture_fmt = RARCH_GL_FORMAT16_565;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef HAVE_GL_ASYNC_READBACK
|
||||
|
@ -1001,6 +1001,7 @@ static bool gl2_renderchain_read_viewport(
|
||||
|
||||
num_pixels = gl->vp.width * gl->vp.height;
|
||||
|
||||
#ifdef HAVE_GL_ASYNC_READBACK
|
||||
if (gl->pbo_readback_enable)
|
||||
{
|
||||
const uint8_t *ptr = NULL;
|
||||
@ -1049,6 +1050,7 @@ static bool gl2_renderchain_read_viewport(
|
||||
glBindBuffer(GL_PIXEL_PACK_BUFFER, 0);
|
||||
}
|
||||
else
|
||||
#endif
|
||||
{
|
||||
/* Use slow synchronous readbacks. Use this with plain screenshots
|
||||
as we don't really care about performance in this case. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user