Loading libs/hwui/Caches.cpp +4 −0 Original line number Diff line number Diff line Loading @@ -495,6 +495,10 @@ void Caches::activeTexture(GLuint textureUnit) { } } void Caches::resetActiveTexture() { mTextureUnit = -1; } void Caches::bindTexture(GLuint texture) { if (mBoundTextures[mTextureUnit] != texture) { glBindTexture(GL_TEXTURE_2D, texture); Loading libs/hwui/Caches.h +5 −0 Original line number Diff line number Diff line Loading @@ -225,6 +225,11 @@ public: */ void activeTexture(GLuint textureUnit); /** * Invalidate the cached value of the active texture unit. */ void resetActiveTexture(); /** * Binds the specified texture as a GL_TEXTURE_2D texture. * All texture bindings must be performed with this method or Loading libs/hwui/OpenGLRenderer.cpp +1 −0 Original line number Diff line number Diff line Loading @@ -351,6 +351,7 @@ void OpenGLRenderer::interrupt() { mCaches.currentProgram = NULL; } } mCaches.resetActiveTexture(); mCaches.unbindMeshBuffer(); mCaches.unbindIndicesBuffer(); mCaches.resetVertexPointers(); Loading Loading
libs/hwui/Caches.cpp +4 −0 Original line number Diff line number Diff line Loading @@ -495,6 +495,10 @@ void Caches::activeTexture(GLuint textureUnit) { } } void Caches::resetActiveTexture() { mTextureUnit = -1; } void Caches::bindTexture(GLuint texture) { if (mBoundTextures[mTextureUnit] != texture) { glBindTexture(GL_TEXTURE_2D, texture); Loading
libs/hwui/Caches.h +5 −0 Original line number Diff line number Diff line Loading @@ -225,6 +225,11 @@ public: */ void activeTexture(GLuint textureUnit); /** * Invalidate the cached value of the active texture unit. */ void resetActiveTexture(); /** * Binds the specified texture as a GL_TEXTURE_2D texture. * All texture bindings must be performed with this method or Loading
libs/hwui/OpenGLRenderer.cpp +1 −0 Original line number Diff line number Diff line Loading @@ -351,6 +351,7 @@ void OpenGLRenderer::interrupt() { mCaches.currentProgram = NULL; } } mCaches.resetActiveTexture(); mCaches.unbindMeshBuffer(); mCaches.unbindIndicesBuffer(); mCaches.resetVertexPointers(); Loading