Loading libs/hwui/Caches.cpp +6 −2 Original line number Diff line number Diff line Loading @@ -551,9 +551,13 @@ void Caches::bindTexture(GLuint texture) { } void Caches::bindTexture(GLenum target, GLuint texture) { if (mBoundTextures[mTextureUnit] != texture) { if (target == GL_TEXTURE_2D) { bindTexture(texture); } else { // GLConsumer directly calls glBindTexture() with // target=GL_TEXTURE_EXTERNAL_OES, don't cache this target // since the cached state could be stale glBindTexture(target, texture); mBoundTextures[mTextureUnit] = texture; } } Loading libs/hwui/Caches.h +1 −0 Original line number Diff line number Diff line Loading @@ -431,6 +431,7 @@ private: uint32_t mFunctorsCount; // Caches texture bindings for the GL_TEXTURE_2D target GLuint mBoundTextures[REQUIRED_TEXTURE_UNITS_COUNT]; OverdrawColorSet mOverdrawDebugColorSet; Loading Loading
libs/hwui/Caches.cpp +6 −2 Original line number Diff line number Diff line Loading @@ -551,9 +551,13 @@ void Caches::bindTexture(GLuint texture) { } void Caches::bindTexture(GLenum target, GLuint texture) { if (mBoundTextures[mTextureUnit] != texture) { if (target == GL_TEXTURE_2D) { bindTexture(texture); } else { // GLConsumer directly calls glBindTexture() with // target=GL_TEXTURE_EXTERNAL_OES, don't cache this target // since the cached state could be stale glBindTexture(target, texture); mBoundTextures[mTextureUnit] = texture; } } Loading
libs/hwui/Caches.h +1 −0 Original line number Diff line number Diff line Loading @@ -431,6 +431,7 @@ private: uint32_t mFunctorsCount; // Caches texture bindings for the GL_TEXTURE_2D target GLuint mBoundTextures[REQUIRED_TEXTURE_UNITS_COUNT]; OverdrawColorSet mOverdrawDebugColorSet; Loading