Update GLSM

This commit is contained in:
twinaphex 2016-06-04 02:35:06 +02:00
parent a759694b97
commit b7bf13ed1c
2 changed files with 30 additions and 0 deletions

View File

@ -1803,6 +1803,32 @@ void rglDeleteVertexArrays(GLsizei n, const GLuint *arrays)
#endif
}
/*
*
* Core in:
* OpenGL : 3.2
* OpenGLES : 3.0
*/
GLsync rglFenceSync(GLenum condition, GLbitfield flags)
{
#if defined(HAVE_OPENGL) || defined(HAVE_OPENGLES) && defined(HAVE_OPENGLES3)
return glFenceSync(condition, flags);
#endif
}
/*
*
* Core in:
* OpenGL : 3.2
* OpenGLES : 3.0
*/
void rglWaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout)
{
#if defined(HAVE_OPENGL) || defined(HAVE_OPENGLES) && defined(HAVE_OPENGLES3)
glWaitSync(sync, flags, timeout);
#endif
}
/* GLSM-side */
static void glsm_state_setup(void)

View File

@ -158,6 +158,8 @@ RETRO_BEGIN_DECLS
#define glTexBuffer rglTexBuffer
#define glClearBufferfv rglClearBufferfv
#define glClearBufferfi rglClearBufferfi
#define glWaitSync rglWaitSync
#define glFenceSync rglFenceSync
const GLubyte* rglGetStringi(GLenum name, GLuint index);
void rglTexBuffer(GLenum target, GLenum internalFormat, GLuint buffer);
@ -391,6 +393,8 @@ void rglTexSubImage2D( GLenum target,
GLenum type,
const GLvoid * pixels);
void rglDeleteVertexArrays(GLsizei n, const GLuint *arrays);
GLsync rglFenceSync(GLenum condition, GLbitfield flags);
void rglWaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout);
RETRO_END_DECLS