This commit is contained in:
twinaphex 2017-11-08 18:49:45 +01:00
parent 9ab13b719b
commit 3e0b4552d6
2 changed files with 12 additions and 13 deletions

View File

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

View File

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