diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-12-11 01:55:33 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-12-11 02:22:49 +0300 |
commit | 59ab65919f9292b9aa324d1406033786c34cf4ce (patch) | |
tree | fdbf4089d43ab8070cb302edf69c3bc8874815be /src/render/mobileopengl2graphics.h | |
parent | 5e460c2c47e85a5ec70e0979750170ec6cd199b3 (diff) | |
download | manaverse-59ab65919f9292b9aa324d1406033786c34cf4ce.tar.gz manaverse-59ab65919f9292b9aa324d1406033786c34cf4ce.tar.bz2 manaverse-59ab65919f9292b9aa324d1406033786c34cf4ce.tar.xz manaverse-59ab65919f9292b9aa324d1406033786c34cf4ce.zip |
In mobileopengl2graphics update texture size uniform only if size changed.
Diffstat (limited to 'src/render/mobileopengl2graphics.h')
-rw-r--r-- | src/render/mobileopengl2graphics.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/render/mobileopengl2graphics.h b/src/render/mobileopengl2graphics.h index 1a9ce3284..0a5edc564 100644 --- a/src/render/mobileopengl2graphics.h +++ b/src/render/mobileopengl2graphics.h @@ -108,6 +108,10 @@ class MobileOpenGL2Graphics final : public Graphics static void bindTexture2(const GLenum target, const Image *const image); + static GLuint mTextureSizeUniform; + static int mTextureWidth; + static int mTextureHeight; + GLfloat *mFloatArray A_NONNULLPOINTER; GLfloat *mFloatArrayCached A_NONNULLPOINTER; ShaderProgram *mProgram; @@ -118,7 +122,6 @@ class MobileOpenGL2Graphics final : public Graphics int mMaxVertices; GLuint mProgramId; GLuint mSimpleColorUniform; - static GLuint mTextureSizeUniform; GLint mPosAttrib; GLint mTextureColorUniform; GLuint mScreenUniform; |