From 8d4d0d16c69f118b48b3d725353855c31f226c7f Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 12 Apr 2016 02:22:12 +0200 Subject: [PATCH] (libretro-common) Update GLSM --- libretro-common/glsm/glsm.c | 11 +++++++++++ libretro-common/include/glsm/glsmsym.h | 4 ++++ 2 files changed, 15 insertions(+) diff --git a/libretro-common/glsm/glsm.c b/libretro-common/glsm/glsm.c index 7e95cc5677..fdeee70d31 100644 --- a/libretro-common/glsm/glsm.c +++ b/libretro-common/glsm/glsm.c @@ -735,6 +735,17 @@ void rglDrawBuffers(GLsizei n, const GLenum *bufs) #endif } +void rglBlendEquation(GLenum mode) +{ + glBlendEquation(mode); +} + +void rglBlendColor(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha) +{ + glBlendColor(red, green, blue, alpha); +} + + void rglBindVertexArray(GLuint array) { #if defined(HAVE_OPENGLES) && !defined(HAVE_OPENGLES3) && !defined(HAVE_OPENGLES31) diff --git a/libretro-common/include/glsm/glsmsym.h b/libretro-common/include/glsm/glsmsym.h index 36fef49c85..78553a3728 100644 --- a/libretro-common/include/glsm/glsmsym.h +++ b/libretro-common/include/glsm/glsmsym.h @@ -117,7 +117,11 @@ extern "C" { #define glDrawBuffers rglDrawBuffers #define glGenVertexArrays rglGenVertexArrays #define glBindVertexArray rglBindVertexArray +#define glBlendEquation rglBlendEquation +#define glBlendColor rglBlendColor +void rglBlendColor(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); +void rglBlendEquation(GLenum mode); void rglGenVertexArrays(GLsizei n, GLuint *arrays); void rglReadBuffer(GLenum mode); void rglPixelStorei(GLenum pname, GLint param);