diff options
author | 2015-02-05 10:12:38 -0800 | |
---|---|---|
committer | 2015-02-06 13:42:25 -0800 | |
commit | 117bdbcfa3e8306dad21e7e01fa71b00cdfa7265 (patch) | |
tree | aa54e4a5538818cd946bbd6e7eb771b83d0cfebd /libs/hwui/Dither.cpp | |
parent | 34725687748cc2b4ace2bdb49becfdcd569e9a5d (diff) |
Glop ColorFilter & VertexBuffer support, initial enable
Enables Glop rendering for supported Rects and VertexBuffers
Also removes unused Query object
Change-Id: Ibe227bc362685a153159f75077664f0947764e06
Diffstat (limited to 'libs/hwui/Dither.cpp')
-rw-r--r-- | libs/hwui/Dither.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libs/hwui/Dither.cpp b/libs/hwui/Dither.cpp index 359c19327ad7..1ba651174c8a 100644 --- a/libs/hwui/Dither.cpp +++ b/libs/hwui/Dither.cpp @@ -32,8 +32,6 @@ Dither::Dither(Caches& caches) void Dither::bindDitherTexture() { if (!mInitialized) { - bool useFloatTexture = Extensions::getInstance().hasFloatTextures(); - glGenTextures(1, &mDitherTexture); mCaches.textureState().bindTexture(mDitherTexture); @@ -43,7 +41,7 @@ void Dither::bindDitherTexture() { glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT); - if (useFloatTexture) { + if (mCaches.extensions().hasFloatTextures()) { // We use a R16F texture, let's remap the alpha channel to the // red channel to avoid changing the shader sampling code on GL ES 3.0+ glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_SWIZZLE_A, GL_RED); |