diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-12-11 19:46:33 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-12-11 19:46:33 +0300 |
commit | b688376240610a837e2abea605d9cef87da74d42 (patch) | |
tree | 3f062518853437a3ace0611693133aa140cd9a42 /src | |
parent | ec2493471591cee04b2ae691c99c4f1f34612bb8 (diff) | |
download | manaplus-b688376240610a837e2abea605d9cef87da74d42.tar.gz manaplus-b688376240610a837e2abea605d9cef87da74d42.tar.bz2 manaplus-b688376240610a837e2abea605d9cef87da74d42.tar.xz manaplus-b688376240610a837e2abea605d9cef87da74d42.zip |
Dont request max verticies count on nacl.
Diffstat (limited to 'src')
-rw-r--r-- | src/graphicsmanager.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/graphicsmanager.cpp b/src/graphicsmanager.cpp index 83be30964..7bf483ce8 100644 --- a/src/graphicsmanager.cpp +++ b/src/graphicsmanager.cpp @@ -1274,6 +1274,9 @@ void GraphicsManager::initOpenGLFunctions() void GraphicsManager::updateLimits() { GLint value = 0; +#ifdef __native_client__ + mMaxVertices = 500; +#else glGetIntegerv(GL_MAX_ELEMENTS_VERTICES, &value); logger->log("GL_MAX_ELEMENTS_VERTICES: %d", value); @@ -1290,6 +1293,7 @@ void GraphicsManager::updateLimits() "Overriding to 500"); mMaxVertices = 500; } +#endif value = 0; glGetIntegerv(GL_MAX_RENDERBUFFER_SIZE, &value); |