From 6895d70803fe503e4d1c8aaf321c3363af47080d Mon Sep 17 00:00:00 2001 From: Mathieu Virbel Date: Mon, 19 Dec 2011 15:21:21 +0100 Subject: [PATCH] fix mesabuild by including declaration in case we are using GLES2 headers and link against desktop GL libraries. --- kivy/graphics/gl_redirect.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/kivy/graphics/gl_redirect.h b/kivy/graphics/gl_redirect.h index 84c8054e4..2a1616f7e 100644 --- a/kivy/graphics/gl_redirect.h +++ b/kivy/graphics/gl_redirect.h @@ -50,6 +50,13 @@ # define glBlendEquationSeparate(x, y) # define glDepthRangef glDepthRange # define glClearDepthf glClearDepth + +// C redirection to prevent warning of undeclared symbol +// (theses functions are not existing in GLES2, but if we are using GLES2 +// headers with GL library, we need to declare them.) +GL_APICALL void GL_APIENTRY glDepthRange( GLclampf near_val, GLclampf far_val ); +GL_APICALL void GL_APIENTRY glClearDepth( GLclampf depth ); + #endif #endif