From 9a1f0c4098fce2298d69a603694bc3769cbcb5ce Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Tue, 19 Jun 2012 13:07:40 +0200 Subject: [PATCH] cogl-gles2: Add glTexParameterf to wrapper library Reviewed-by: Neil Roberts (cherry picked from commit 06d6bdb73e3d2468cf3a8c355152cbdeb1b36d94) --- cogl-gles2/cogl-gles2-api.c | 7 +++++++ cogl/gl-prototypes/cogl-core-functions.h | 2 ++ 2 files changed, 9 insertions(+) diff --git a/cogl-gles2/cogl-gles2-api.c b/cogl-gles2/cogl-gles2-api.c index ce4add1bc..22ab2b716 100644 --- a/cogl-gles2/cogl-gles2-api.c +++ b/cogl-gles2/cogl-gles2-api.c @@ -241,6 +241,13 @@ glTexImage2D (GLenum target, GLint level, GLint internalformat, GLsizei width, format, type, pixels); } +void +glTexParameterf (GLenum target, GLenum pname, GLfloat param) +{ + CoglGLES2Vtable *vtable = cogl_gles2_get_current_vtable (); + vtable->glTexParameterf (target, pname, param); +} + void glTexParameterfv (GLenum target, GLenum pname, const GLfloat * params) { diff --git a/cogl/gl-prototypes/cogl-core-functions.h b/cogl/gl-prototypes/cogl-core-functions.h index 9210547fb..bb347dfca 100644 --- a/cogl/gl-prototypes/cogl-core-functions.h +++ b/cogl/gl-prototypes/cogl-core-functions.h @@ -152,6 +152,8 @@ COGL_EXT_FUNCTION (void, glTexImage2D, GLenum format, GLenum type, const GLvoid* pixels)) +COGL_EXT_FUNCTION (void, glTexParameterf, + (GLenum target, GLenum pname, GLfloat param)) COGL_EXT_FUNCTION (void, glTexParameterfv, (GLenum target, GLenum pname, const GLfloat* params)) COGL_EXT_FUNCTION (void, glTexParameteri,