diff options
author | Alejandro Marzini | 2010-07-13 05:38:10 +0000 |
---|---|---|
committer | Alejandro Marzini | 2010-07-13 05:38:10 +0000 |
commit | 84ceae932852fe684ea553daee712b52da83add6 (patch) | |
tree | 13bc020842cff6ebc0d12685551c122ec3df4f12 /backends/graphics/opengl/gltexture.cpp | |
parent | 5f86d1127528244f20296833889881e185f16795 (diff) | |
download | scummvm-rg350-84ceae932852fe684ea553daee712b52da83add6.tar.gz scummvm-rg350-84ceae932852fe684ea553daee712b52da83add6.tar.bz2 scummvm-rg350-84ceae932852fe684ea553daee712b52da83add6.zip |
Check if USE_OPENGL is defined for compiling OpenGL code.
svn-id: r50842
Diffstat (limited to 'backends/graphics/opengl/gltexture.cpp')
-rw-r--r-- | backends/graphics/opengl/gltexture.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/backends/graphics/opengl/gltexture.cpp b/backends/graphics/opengl/gltexture.cpp index 139222bc36..0a3e607d42 100644 --- a/backends/graphics/opengl/gltexture.cpp +++ b/backends/graphics/opengl/gltexture.cpp @@ -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 |