We do not need to resolve extensions in OpenGL ES.

Therefore the kwinglutils_funcs.h includes just GLES/gl.h and
the .cpp does not do anything
This commit is contained in:
Martin Gräßlin 2010-09-14 21:41:55 +02:00 committed by Martin Gräßlin
parent 8f2f126c31
commit faa86c2464
2 changed files with 8 additions and 0 deletions

View file

@ -33,6 +33,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
function = (function ## _func)getProcAddress( #backup ); function = (function ## _func)getProcAddress( #backup );
#ifdef KWIN_HAVE_OPENGL #ifdef KWIN_HAVE_OPENGL
#ifndef KWIN_HAVE_OPENGLES
namespace KWin namespace KWin
{ {
@ -297,3 +298,4 @@ void glResolveFunctions()
} // namespace } // namespace
#endif #endif
#endif

View file

@ -29,6 +29,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifdef KWIN_HAVE_OPENGL #ifdef KWIN_HAVE_OPENGL
#ifndef KWIN_HAVE_OPENGLES
// gcc-3.3.3 apparently cannot resolve KWin's namespaced versions properly, // gcc-3.3.3 apparently cannot resolve KWin's namespaced versions properly,
// so hide possible global functions // so hide possible global functions
#define glXQueryDrawable kwinhide_glXQueryDrawable #define glXQueryDrawable kwinhide_glXQueryDrawable
@ -345,6 +347,10 @@ extern KWIN_EXPORT glVertexAttribPointer_func glVertexAttribPointer;
} // namespace } // namespace
#else
#include <GLES/gl.h>
#endif
#endif #endif
#endif #endif