Check if USE_OPENGL is defined for compiling OpenGL code.
svn-id: r50842
This commit is contained in:
parent
5f86d11275
commit
84ceae9328
6 changed files with 55 additions and 10 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue