More buildfixes

This commit is contained in:
twinaphex 2017-11-08 00:59:16 +01:00
parent e7599e8952
commit c1f0fceb4f
2 changed files with 4 additions and 0 deletions

View File

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

View File

@ -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. */