Fix KWin build failure when OpenGL is disabled and OpenGLES is enabled.

Authored by palimaka on Apr 14 2012, 6:55 PM.

Description

Fix KWin build failure when OpenGL is disabled and OpenGLES is enabled.

Some old restructuring caused -DKWIN_HAVE_OPENGLES to no longer be
passed to the compiler, causing OpenGL-specific code to be built
while the libraries to link it were not available.

REVIEW: 104558

Details