diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-05-25 17:50:46 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-05-25 17:50:46 +0300 |
commit | 8e6ab562dd62383d191806e88548e89b4d0a9d65 (patch) | |
tree | 36fa576cdb6ff9aa950ec04165eab095f794f385 /src/graphicsmanager.h | |
parent | e195e09e86d18c45676431813f98c56d85cc8201 (diff) | |
download | plus-8e6ab562dd62383d191806e88548e89b4d0a9d65.tar.gz plus-8e6ab562dd62383d191806e88548e89b4d0a9d65.tar.bz2 plus-8e6ab562dd62383d191806e88548e89b4d0a9d65.tar.xz plus-8e6ab562dd62383d191806e88548e89b4d0a9d65.zip |
Add support for simple texture size detection.
This test check from 1024 to max texture size reported by driver.
Diffstat (limited to 'src/graphicsmanager.h')
-rw-r--r-- | src/graphicsmanager.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/graphicsmanager.h b/src/graphicsmanager.h index 8e5aba51f..ff70e7634 100644 --- a/src/graphicsmanager.h +++ b/src/graphicsmanager.h @@ -148,7 +148,7 @@ class GraphicsManager final bool isUseTextureSampler() const A_WARN_UNUSED { return mUseTextureSampler; } - static GLenum getLastError() A_WARN_UNUSED; + static GLenum getLastError(); static std::string errorToString(const GLenum error) A_WARN_UNUSED; @@ -156,6 +156,12 @@ class GraphicsManager final std::string getGLVersion() const { return mGlVersionString; } + + GLenum getLastErrorCached() const + { return mLastError; } + + void resetCachedError() + { mLastError = GL_NO_ERROR; } #endif private: @@ -169,6 +175,10 @@ class GraphicsManager final std::string mGlRenderer; +#ifdef USE_OPENGL + static GLenum mLastError; +#endif + int mMinor; int mMajor; |