mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 13:20:30 +00:00
(PS3) Custom aspect ratio works now
This commit is contained in:
parent
2da438bcf0
commit
e9ce0aaaa4
3
gfx/gl.c
3
gfx/gl.c
@ -2360,7 +2360,6 @@ static bool gl_read_viewport(void *data, uint8_t *buffer)
|
||||
{
|
||||
unsigned i;
|
||||
gl_t *gl = (gl_t*)data;
|
||||
(void)i;
|
||||
|
||||
RARCH_PERFORMANCE_INIT(read_viewport);
|
||||
RARCH_PERFORMANCE_START(read_viewport);
|
||||
@ -2371,6 +2370,7 @@ static bool gl_read_viewport(void *data, uint8_t *buffer)
|
||||
gl_bind_backbuffer();
|
||||
#endif
|
||||
|
||||
#ifndef NO_GL_READ_PIXELS
|
||||
#ifdef HAVE_OPENGLES
|
||||
glPixelStorei(GL_PACK_ALIGNMENT, get_alignment(gl->vp.width * 3));
|
||||
// GLES doesn't support glReadBuffer ... Take a chance that it'll work out right.
|
||||
@ -2417,6 +2417,7 @@ static bool gl_read_viewport(void *data, uint8_t *buffer)
|
||||
gl->vp.width, gl->vp.height,
|
||||
GL_BGR, GL_UNSIGNED_BYTE, buffer);
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
RARCH_PERFORMANCE_STOP(read_viewport);
|
||||
|
@ -309,7 +309,7 @@ typedef struct gl
|
||||
|
||||
// Platform specific workarounds/hacks.
|
||||
#if defined(__CELLOS_LV2__)
|
||||
#define NO_GL_READ_VIEWPORT
|
||||
#define NO_GL_READ_PIXELS
|
||||
|
||||
// Performance hacks
|
||||
#ifdef HAVE_RGL
|
||||
|
Loading…
x
Reference in New Issue
Block a user