diff options
author | Adam Borowski <kilobyte@angband.pl> | 2010-07-28 21:54:57 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2010-07-28 21:54:57 +0200 |
commit | ead9fca684dfa7fe561a54ac63963baec37b5985 (patch) | |
tree | 03f6923ca1dc02e469a306956279bc6d707bc452 /crawl-ref/source/glwrapper-ogl.cc | |
parent | c5ef8a7d05ab323adbe740056e9d3d3d235a3038 (diff) | |
download | crawl-ref-ead9fca684dfa7fe561a54ac63963baec37b5985.tar.gz crawl-ref-ead9fca684dfa7fe561a54ac63963baec37b5985.zip |
Conditionalize glOrthox(), not all OpenGLs have it.
(and OpenGLES doesn't have ordinary glOrtho(), just -f and -x)
Diffstat (limited to 'crawl-ref/source/glwrapper-ogl.cc')
-rw-r--r-- | crawl-ref/source/glwrapper-ogl.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/glwrapper-ogl.cc b/crawl-ref/source/glwrapper-ogl.cc index 7e5f9f987c..49c6545f5d 100644 --- a/crawl-ref/source/glwrapper-ogl.cc +++ b/crawl-ref/source/glwrapper-ogl.cc @@ -151,7 +151,11 @@ void OGLStateManager::reset_view_for_resize(const coord_def &m_windowsz) glLoadIdentity(); // For ease, vertex positions are pixel positions. +#ifdef USE_GLES glOrthox(0, m_windowsz.x, m_windowsz.y, 0, -1000, 1000); +#else + glOrtho(0, m_windowsz.x, m_windowsz.y, 0, -1000, 1000); +#endif } void OGLStateManager::reset_transform() |