diff options
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() |