mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-27 13:16:14 +00:00
Update GLSM
This commit is contained in:
parent
a759694b97
commit
b7bf13ed1c
@ -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)
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user