From b688376240610a837e2abea605d9cef87da74d42 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 11 Dec 2015 19:46:33 +0300 Subject: Dont request max verticies count on nacl. --- src/graphicsmanager.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/graphicsmanager.cpp') 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); -- cgit v1.2.3-70-g09d2