mirror of
https://github.com/libretro/RetroArch.git
synced 2025-03-03 07:18:56 +00:00
Get rid of NO_GL_READ_PIXELS
This commit is contained in:
parent
0703615bf5
commit
9f987dd97b
@ -1217,8 +1217,6 @@ static bool gl_frame(void *data, const void *frame,
|
||||
gl->renderchain_driver->disable_client_arrays();
|
||||
}
|
||||
|
||||
#ifndef NO_GL_READ_PIXELS
|
||||
|
||||
/* Screenshots. */
|
||||
if (gl->readback_buffer_screenshot)
|
||||
{
|
||||
@ -1240,8 +1238,6 @@ static bool gl_frame(void *data, const void *frame,
|
||||
if (!gl->menu_texture_enable)
|
||||
#endif
|
||||
gl_pbo_async_readback(gl);
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/* Disable BFI during fast forward, slow-motion,
|
||||
|
@ -152,11 +152,6 @@
|
||||
#define RARCH_GL_FORMAT16_565 GL_UNSIGNED_SHORT_5_6_5
|
||||
#endif
|
||||
|
||||
/* Platform specific workarounds/hacks. */
|
||||
#if defined(__CELLOS_LV2__)
|
||||
#define NO_GL_READ_PIXELS
|
||||
#endif
|
||||
|
||||
#if defined(HAVE_OPENGL_MODERN) || defined(HAVE_OPENGLES2) || defined(HAVE_OPENGLES3) || defined(HAVE_OPENGLES_3_1) || defined(HAVE_OPENGLES_3_2) || defined(HAVE_PSGL)
|
||||
|
||||
#ifndef NO_GL_FF_VERTEX
|
||||
|
@ -990,7 +990,6 @@ static void gl2_renderchain_viewport_info(
|
||||
static bool gl2_renderchain_read_viewport(
|
||||
void *data, uint8_t *buffer, bool is_idle)
|
||||
{
|
||||
#ifndef NO_GL_READ_PIXELS
|
||||
unsigned num_pixels = 0;
|
||||
gl_t *gl = (gl_t*)data;
|
||||
|
||||
@ -1086,7 +1085,6 @@ static bool gl2_renderchain_read_viewport(
|
||||
|
||||
error:
|
||||
context_bind_hw_render(true);
|
||||
#endif
|
||||
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user