Fix Gallery glitch due to ColorTexture.
Change the initial value of mTextureTarget to GL_TEXTURE_2D,
since it is default enabled.
bug:6668616
Change-Id: I4bf475ca1a02fed3371e8223003a10e88ce8d519
diff --git a/src/com/android/gallery3d/ui/GLCanvasImpl.java b/src/com/android/gallery3d/ui/GLCanvasImpl.java
index ff3e9e5..45ea058 100644
--- a/src/com/android/gallery3d/ui/GLCanvasImpl.java
+++ b/src/com/android/gallery3d/ui/GLCanvasImpl.java
@@ -529,7 +529,7 @@
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;