mirror of
https://github.com/libretro/RetroArch
synced 2025-03-01 16:13:40 +00:00
Update GLSM
This commit is contained in:
parent
f6b7fc17f6
commit
fb133a7487
@ -1848,6 +1848,55 @@ void rglWaitSync(void *sync, GLbitfield flags, uint64_t timeout)
|
||||
#endif
|
||||
}
|
||||
|
||||
/*
|
||||
*
|
||||
* Core in:
|
||||
* OpenGL : 4.4
|
||||
* OpenGLES : Not available
|
||||
*/
|
||||
void rglBufferStorage(GLenum target, GLsizeiptr size, const GLvoid *data, GLbitfield flags) {
|
||||
#if defined(HAVE_OPENGL)
|
||||
glBufferStorage(target, size, data, flags);
|
||||
#endif
|
||||
}
|
||||
|
||||
/*
|
||||
*
|
||||
* Core in:
|
||||
* OpenGL : 3.0
|
||||
* OpenGLES : 3.0
|
||||
*/
|
||||
void rglFlushMappedBufferRange(GLenum target, GLintptr offset, GLsizeiptr length) {
|
||||
#if defined(HAVE_OPENGL) || defined(HAVE_OPENGLES) && defined(HAVE_OPENGLES3)
|
||||
glFlushMappedBufferRange(target, offset, length);
|
||||
#endif
|
||||
}
|
||||
|
||||
/*
|
||||
*
|
||||
* Core in:
|
||||
* OpenGL : 3.2
|
||||
* OpenGLES : 3.0
|
||||
*/
|
||||
GLenum rglClientWaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout) {
|
||||
#if defined(HAVE_OPENGL) || defined(HAVE_OPENGLES) && defined(HAVE_OPENGLES3)
|
||||
return glClientWaitSync(sync, flags, timeout);
|
||||
#endif
|
||||
}
|
||||
|
||||
/*
|
||||
*
|
||||
* Core in:
|
||||
* OpenGL : 3.2
|
||||
* OpenGLES : Not available
|
||||
*/
|
||||
void rglDrawElementsBaseVertex(GLenum mode, GLsizei count, GLenum type,
|
||||
GLvoid *indices, GLint basevertex) {
|
||||
#if defined(HAVE_OPENGL)
|
||||
glDrawElementsBaseVertex(mode, count, type, indices, basevertex);
|
||||
#endif
|
||||
}
|
||||
|
||||
/* GLSM-side */
|
||||
|
||||
static void glsm_state_setup(void)
|
||||
@ -2076,6 +2125,8 @@ static bool glsm_state_ctx_destroy(void *data)
|
||||
if (gl_state.bind_textures.ids)
|
||||
free(gl_state.bind_textures.ids);
|
||||
gl_state.bind_textures.ids = NULL;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
static bool glsm_state_ctx_init(void *data)
|
||||
|
@ -161,6 +161,10 @@ RETRO_BEGIN_DECLS
|
||||
#define glClearBufferfi rglClearBufferfi
|
||||
#define glWaitSync rglWaitSync
|
||||
#define glFenceSync rglFenceSync
|
||||
#define glBufferStorage rglBufferStorage
|
||||
#define glFlushMappedBufferRange rglFlushMappedBufferRange
|
||||
#define glClientWaitSync rglClientWaitSync
|
||||
#define glDrawElementsBaseVertex rglDrawElementsBaseVertex
|
||||
|
||||
const GLubyte* rglGetStringi(GLenum name, GLuint index);
|
||||
void rglTexBuffer(GLenum target, GLenum internalFormat, GLuint buffer);
|
||||
@ -397,6 +401,11 @@ void rglTexSubImage2D( GLenum target,
|
||||
void rglDeleteVertexArrays(GLsizei n, const GLuint *arrays);
|
||||
void *rglFenceSync(GLenum condition, GLbitfield flags);
|
||||
void rglWaitSync(void *sync, GLbitfield flags, uint64_t timeout);
|
||||
void rglBufferStorage(GLenum target, GLsizeiptr size, const GLvoid *data, GLbitfield flags);
|
||||
void rglFlushMappedBufferRange(GLenum target, GLintptr offset, GLsizeiptr length);
|
||||
GLenum rglClientWaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout);
|
||||
void rglDrawElementsBaseVertex(GLenum mode, GLsizei count, GLenum type,
|
||||
GLvoid *indices, GLint basevertex);
|
||||
|
||||
RETRO_END_DECLS
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user