summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-12-11 19:46:33 +0300
committerAndrei Karas <akaras@inbox.ru>2015-12-11 19:46:33 +0300
commitb688376240610a837e2abea605d9cef87da74d42 (patch)
tree3f062518853437a3ace0611693133aa140cd9a42 /src
parentec2493471591cee04b2ae691c99c4f1f34612bb8 (diff)
downloadplus-b688376240610a837e2abea605d9cef87da74d42.tar.gz
plus-b688376240610a837e2abea605d9cef87da74d42.tar.bz2
plus-b688376240610a837e2abea605d9cef87da74d42.tar.xz
plus-b688376240610a837e2abea605d9cef87da74d42.zip
Dont request max verticies count on nacl.
Diffstat (limited to 'src')
-rw-r--r--src/graphicsmanager.cpp4
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);