OSDN Git Service

Fix Gallery glitch due to ColorTexture.
authorOwen Lin <owenlin@google.com>
Tue, 19 Jun 2012 03:36:23 +0000 (11:36 +0800)
committerOwen Lin <owenlin@google.com>
Tue, 19 Jun 2012 03:46:16 +0000 (11:46 +0800)
Change the initial value of mTextureTarget to GL_TEXTURE_2D,
since it is default enabled.

bug:6668616

Change-Id: I4bf475ca1a02fed3371e8223003a10e88ce8d519

src/com/android/gallery3d/ui/GLCanvasImpl.java

index ff3e9e5..45ea058 100644 (file)
@@ -529,7 +529,7 @@ public class GLCanvasImpl implements GLCanvas {
 
         private int mTexEnvMode = GL11.GL_REPLACE;
         private float mTextureAlpha = 1.0f;
-        private int mTextureTarget = 0;
+        private int mTextureTarget = GL11.GL_TEXTURE_2D;
         private boolean mBlendEnabled = true;
         private float mLineWidth = 1.0f;
         private boolean mLineSmooth = false;