From: Allura u. <al...@lw...> - 2021-12-11 01:45:36
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "The KallistiOS port of OpenGL.". The branch, master has been updated via 07f346a758576af2b58e18bd0c139c2f5249407e (commit) from c4938f4b976cb7a1defd0ede491ab4f68355fbd3 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 07f346a758576af2b58e18bd0c139c2f5249407e Author: t-chan <t_c...@ho...> Date: Sun Jun 20 10:44:24 2021 +0200 libGL: glClearDepth() defined as macro gives problems when kos/addons has another gl.h include ----------------------------------------------------------------------- Summary of changes: gl-api.c | 5 +++++ include/gl.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gl-api.c b/gl-api.c index 0f54352..9291164 100644 --- a/gl-api.c +++ b/gl-api.c @@ -186,6 +186,11 @@ void APIENTRY glClearDepthf(GLfloat depth) { ; } +//== NoOp ==// +void APIENTRY glClearDepth(GLfloat depth) { + ; +} + void APIENTRY glDepthFunc(GLenum func) { switch(func) { case GL_LESS: diff --git a/include/gl.h b/include/gl.h index 9808254..befd3b4 100644 --- a/include/gl.h +++ b/include/gl.h @@ -479,7 +479,7 @@ GLAPI void APIENTRY glClearColor(GLfloat r, GLfloat g, GLfloat b, GLfloat a); /* Depth Testing */ GLAPI void APIENTRY glClearDepthf(GLfloat depth); -#define glClearDepth glClearDepthf +GLAPI void APIENTRY glClearDepth(GLfloat depth); GLAPI void APIENTRY glDepthMask(GLboolean flag); GLAPI void APIENTRY glDepthFunc(GLenum func); hooks/post-receive -- The KallistiOS port of OpenGL. |