Check if USE_OPENGL is defined for compiling OpenGL code.

svn-id: r50842
This commit is contained in:
Alejandro Marzini 2010-07-13 05:38:10 +00:00
parent 5f86d11275
commit 84ceae9328
6 changed files with 55 additions and 10 deletions

View file

@ -23,6 +23,8 @@
*
*/
#ifdef USE_OPENGL
#include "backends/graphics/opengl/gltexture.h"
#include "backends/graphics/opengl/glerrorcheck.h"
@ -175,3 +177,5 @@ void GLTexture::drawTexture(GLshort x, GLshort y, GLshort w, GLshort h) {
assert(ARRAYSIZE(vertices) == ARRAYSIZE(texcoords));
CHECK_GL_ERROR( glDrawArrays(GL_TRIANGLE_STRIP, 0, ARRAYSIZE(vertices) / 2) );
}
#endif