fix mesabuild by including declaration in case we are using GLES2 headers and link against desktop GL libraries.

This commit is contained in:
Mathieu Virbel 2011-12-19 15:21:21 +01:00
parent de75d6493c
commit 6895d70803
1 changed files with 7 additions and 0 deletions

View File

@ -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