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:
parent
8f2f126c31
commit
faa86c2464
2 changed files with 8 additions and 0 deletions
|
@ -33,6 +33,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
function = (function ## _func)getProcAddress( #backup );
|
||||
|
||||
#ifdef KWIN_HAVE_OPENGL
|
||||
#ifndef KWIN_HAVE_OPENGLES
|
||||
|
||||
namespace KWin
|
||||
{
|
||||
|
@ -297,3 +298,4 @@ void glResolveFunctions()
|
|||
} // namespace
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -29,6 +29,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
|
||||
#ifdef KWIN_HAVE_OPENGL
|
||||
|
||||
#ifndef KWIN_HAVE_OPENGLES
|
||||
|
||||
// gcc-3.3.3 apparently cannot resolve KWin's namespaced versions properly,
|
||||
// so hide possible global functions
|
||||
#define glXQueryDrawable kwinhide_glXQueryDrawable
|
||||
|
@ -345,6 +347,10 @@ extern KWIN_EXPORT glVertexAttribPointer_func glVertexAttribPointer;
|
|||
|
||||
} // namespace
|
||||
|
||||
#else
|
||||
#include <GLES/gl.h>
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue