mirror of
https://github.com/libretro/RetroArch
synced 2025-04-18 14:42:30 +00:00
Cleanups
This commit is contained in:
parent
9ab13b719b
commit
3e0b4552d6
@ -40,12 +40,6 @@
|
|||||||
#define glDeleteRenderbuffers glDeleteRenderbuffersOES
|
#define glDeleteRenderbuffers glDeleteRenderbuffersOES
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if (!defined(HAVE_OPENGLES) || defined(HAVE_OPENGLES3))
|
|
||||||
#ifdef GL_PIXEL_PACK_BUFFER
|
|
||||||
#define HAVE_GL_ASYNC_READBACK
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(HAVE_PSGL)
|
#if defined(HAVE_PSGL)
|
||||||
#define RARCH_GL_FRAMEBUFFER GL_FRAMEBUFFER_OES
|
#define RARCH_GL_FRAMEBUFFER GL_FRAMEBUFFER_OES
|
||||||
#define RARCH_GL_FRAMEBUFFER_COMPLETE GL_FRAMEBUFFER_COMPLETE_OES
|
#define RARCH_GL_FRAMEBUFFER_COMPLETE GL_FRAMEBUFFER_COMPLETE_OES
|
||||||
|
@ -54,21 +54,26 @@
|
|||||||
#include "../common/win32_common.h"
|
#include "../common/win32_common.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
typedef struct gl2_renderchain
|
||||||
|
{
|
||||||
|
void *empty;
|
||||||
|
} gl2_renderchain_t;
|
||||||
|
|
||||||
|
#if (!defined(HAVE_OPENGLES) || defined(HAVE_OPENGLES3))
|
||||||
|
#ifdef GL_PIXEL_PACK_BUFFER
|
||||||
|
#define HAVE_GL_ASYNC_READBACK
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#define set_texture_coords(coords, xamt, yamt) \
|
#define set_texture_coords(coords, xamt, yamt) \
|
||||||
coords[2] = xamt; \
|
coords[2] = xamt; \
|
||||||
coords[6] = xamt; \
|
coords[6] = xamt; \
|
||||||
coords[5] = yamt; \
|
coords[5] = yamt; \
|
||||||
coords[7] = yamt
|
coords[7] = yamt
|
||||||
|
|
||||||
typedef struct gl2_renderchain
|
|
||||||
{
|
|
||||||
void *empty;
|
|
||||||
} gl2_renderchain_t;
|
|
||||||
|
|
||||||
/* Prototypes */
|
|
||||||
|
|
||||||
#define gl2_bind_fb(id) glBindFramebuffer(RARCH_GL_FRAMEBUFFER, id)
|
#define gl2_bind_fb(id) glBindFramebuffer(RARCH_GL_FRAMEBUFFER, id)
|
||||||
|
|
||||||
|
/* Prototypes */
|
||||||
static void gl2_renderchain_bind_backbuffer(void)
|
static void gl2_renderchain_bind_backbuffer(void)
|
||||||
{
|
{
|
||||||
#ifdef IOS
|
#ifdef IOS
|
||||||
|
Loading…
x
Reference in New Issue
Block a user