mirror of
https://github.com/libretro/parallel-dc.git
synced 2026-11-12 16:18:16 -10:00
Update GLSM
This commit is contained in:
1 parent
a4b2829b5d
commit
846bb247f4
2 files changed
+30
No files matched your search
@@ -1803,6 +1803,32 @@ void rglDeleteVertexArrays(GLsizei n, const GLuint *arrays)
|
||||
#endif
|
||||
}
|
||||
|
||||
/*
|
||||
*
|
||||
* Core in:
|
||||
* OpenGL : 3.2
|
||||
* OpenGLES : 3.0
|
||||
*/
|
||||
void *rglFenceSync(GLenum condition, GLbitfield flags)
|
||||
{
|
||||
#if defined(HAVE_OPENGL) || defined(HAVE_OPENGLES) && defined(HAVE_OPENGLES3)
|
||||
return (GLsync)glFenceSync(condition, flags);
|
||||
#endif
|
||||
}
|
||||
|
||||
/*
|
||||
*
|
||||
* Core in:
|
||||
* OpenGL : 3.2
|
||||
* OpenGLES : 3.0
|
||||
*/
|
||||
void rglWaitSync(void *sync, GLbitfield flags, GLuint64 timeout)
|
||||
{
|
||||
#if defined(HAVE_OPENGL) || defined(HAVE_OPENGLES) && defined(HAVE_OPENGLES3)
|
||||
glWaitSync((GLsync)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);
|
||||
void *rglFenceSync(GLenum condition, GLbitfield flags);
|
||||
void rglWaitSync(void *data, GLbitfield flags, GLuint64 timeout);
|
||||
|
||||
RETRO_END_DECLS
|
||||
|
||||
|
||||
Reference in new issue
Block a user