From e3fa9ae5ee808d79c1ab9cdee742c9e8f623f0da Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 20 Jun 2016 21:34:26 +0200 Subject: [PATCH] Update GLSM --- libretro-common/glsm/glsm.c | 12 +++++++++++- libretro-common/include/glsm/glsmsym.h | 2 ++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/libretro-common/glsm/glsm.c b/libretro-common/glsm/glsm.c index 57929402c2..b38ac5b0ee 100644 --- a/libretro-common/glsm/glsm.c +++ b/libretro-common/glsm/glsm.c @@ -1464,6 +1464,17 @@ void rglUniform3fv(GLint location, GLsizei count, const GLfloat *value) glUniform3fv(location, count, value); } +/* + * Category: Shaders + * + * Core in: + * OpenGL : 2.0 + */ +void rglUniform4i(GLint location, GLint v0, GLint v1, GLint v2, GLint v3) +{ + glUniform4i(location, v0, v1, v2, v3); +} + /* * Category: Shaders * @@ -2059,7 +2070,6 @@ 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) diff --git a/libretro-common/include/glsm/glsmsym.h b/libretro-common/include/glsm/glsmsym.h index 4ccc57d2a3..5596117434 100644 --- a/libretro-common/include/glsm/glsmsym.h +++ b/libretro-common/include/glsm/glsmsym.h @@ -95,6 +95,7 @@ RETRO_BEGIN_DECLS #define glUniform2fv rglUniform2fv #define glUniform3f rglUniform3f #define glUniform3fv rglUniform3fv +#define glUniform4i rglUniform4i #define glUniform4f rglUniform4f #define glUniform4fv rglUniform4fv #define glUniform1ui rglUniform1ui @@ -298,6 +299,7 @@ void rglUniform2i(GLint location, GLint v0, GLint v1); void rglUniform2fv(GLint location, GLsizei count, const GLfloat *value); void rglUniform3f(GLint location, GLfloat v0, GLfloat v1, GLfloat v2); void rglUniform3fv(GLint location, GLsizei count, const GLfloat *value); +void rglUniform4i(GLint location, GLint v0, GLint v1, GLint v2, GLint v3); void rglUniform4f(GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3); void rglUniform4fv(GLint location, GLsizei count, const GLfloat *value); void rglBlendFunc(GLenum sfactor, GLenum dfactor);