From d594eff3a6030242bfa0bfc44e29b548d38ecaa6 Mon Sep 17 00:00:00 2001 From: T_chan Date: Tue, 18 Jan 2022 17:38:14 +0000 Subject: [PATCH] Add glGetTexParameterfv() stub to increase compatibility --- GL/state.c | 6 ++++++ include/GL/gl.h | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/GL/state.c b/GL/state.c index 4b48966..3cfc590 100644 --- a/GL/state.c +++ b/GL/state.c @@ -531,6 +531,12 @@ void glPolygonOffset(GLfloat factor, GLfloat units) { OFFSET_UNITS = units; } +void glGetTexParameterfv(GLenum target, GLenum pname, GLfloat *params) { + _GL_UNUSED(target); + _GL_UNUSED(pname); + _GL_UNUSED(params); +} + void glGetTexParameteriv(GLenum target, GLenum pname, GLint *params) { _GL_UNUSED(target); _GL_UNUSED(pname); diff --git a/include/GL/gl.h b/include/GL/gl.h index c456c86..9c0901b 100644 --- a/include/GL/gl.h +++ b/include/GL/gl.h @@ -654,7 +654,8 @@ GLAPI GLenum APIENTRY glGetError(void); GLAPI void APIENTRY glAlphaFunc(GLenum func, GLclampf ref); GLAPI void APIENTRY glLineWidth(GLfloat width); GLAPI void APIENTRY glPolygonOffset(GLfloat factor, GLfloat units); -GLAPI void APIENTRY glGetTexParameteriv(GLenum target, GLenum pname, GLint * params); +GLAPI void APIENTRY glGetTexParameterfv(GLenum target, GLenum pname, GLfloat *params); +GLAPI void APIENTRY glGetTexParameteriv(GLenum target, GLenum pname, GLint *params); GLAPI void APIENTRY glColorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha); GLAPI void APIENTRY glPixelStorei(GLenum pname, GLint param);