diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-10-04 22:52:29 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-10-04 22:52:29 +0300 |
commit | a538627edfe8214eff1b3b890ffa6eb9832f7de5 (patch) | |
tree | be7eb8d022d9b4a632cf11c0b415f311ef3734e8 /src/graphicsmanager.cpp | |
parent | 7a7f5905cf19f6a773dcf9bab762b54c16e325f2 (diff) | |
download | manaplus-a538627edfe8214eff1b3b890ffa6eb9832f7de5.tar.gz manaplus-a538627edfe8214eff1b3b890ffa6eb9832f7de5.tar.bz2 manaplus-a538627edfe8214eff1b3b890ffa6eb9832f7de5.tar.xz manaplus-a538627edfe8214eff1b3b890ffa6eb9832f7de5.zip |
Read max fbo size.
Diffstat (limited to 'src/graphicsmanager.cpp')
-rw-r--r-- | src/graphicsmanager.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/graphicsmanager.cpp b/src/graphicsmanager.cpp index 604f0eb3f..c3867cb59 100644 --- a/src/graphicsmanager.cpp +++ b/src/graphicsmanager.cpp @@ -46,6 +46,10 @@ #include "debug.h" +#ifndef GL_MAX_RENDERBUFFER_SIZE +#define GL_MAX_RENDERBUFFER_SIZE 0x84E8 +#endif + #ifdef WIN32 #define getFunction(name) wglGetProcAddress(name) #else @@ -64,6 +68,7 @@ GraphicsManager::GraphicsManager() : mPlatformMinor(0), mPlatformMajor(0), mMaxVertices(500), + mMaxFboSize(0), #ifdef USE_OPENGL mUseTextureSampler(true), mTextureSampler(0), @@ -639,10 +644,16 @@ void GraphicsManager::updateLimits() mMaxVertices = value; + value = 0; glGetIntegerv(GL_MAX_ELEMENTS_INDICES, &value); logger->log("GL_MAX_ELEMENTS_INDICES: %d", value); if (value < mMaxVertices) mMaxVertices = value; + + value = 0; + glGetIntegerv(GL_MAX_RENDERBUFFER_SIZE, &value); + logger->log("Max FBO size: %d", value); + mMaxFboSize = value; #endif } |