diff options
Diffstat (limited to 'libs/hwui/Texture.cpp')
-rw-r--r-- | libs/hwui/Texture.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/hwui/Texture.cpp b/libs/hwui/Texture.cpp index f6850a110286..50af9c8cd711 100644 --- a/libs/hwui/Texture.cpp +++ b/libs/hwui/Texture.cpp @@ -48,6 +48,10 @@ static int bytesPerPixel(GLint glFormat) { } } +bool Texture::isLinear() const { + return mInternalFormat == GL_RGBA16F; +} + void Texture::setWrapST(GLenum wrapS, GLenum wrapT, bool bindTexture, bool force) { if (force || wrapS != mWrapS || wrapT != mWrapT) { |