aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/cyanogenmod/wallpapers/photophase/transitions
diff options
context:
space:
mode:
authorJorge Ruesga <jorge@ruesga.com>2013-07-21 02:22:05 +0200
committerJorge Ruesga <jorge@ruesga.com>2013-07-21 02:22:05 +0200
commit5c2914ef8ebe78a0b729815b379e7901af9cc499 (patch)
tree9c880b345ba3076b2e3654480d156b7f75bfa1ef /src/org/cyanogenmod/wallpapers/photophase/transitions
parentb56df92031af88fb0a577b2a2ae5d75b826a7347 (diff)
downloadandroid_packages_wallpapers_PhotoPhase-5c2914ef8ebe78a0b729815b379e7901af9cc499.tar.gz
android_packages_wallpapers_PhotoPhase-5c2914ef8ebe78a0b729815b379e7901af9cc499.tar.bz2
android_packages_wallpapers_PhotoPhase-5c2914ef8ebe78a0b729815b379e7901af9cc499.zip
Fix imports
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
Diffstat (limited to 'src/org/cyanogenmod/wallpapers/photophase/transitions')
-rw-r--r--src/org/cyanogenmod/wallpapers/photophase/transitions/NullTransition.java18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/org/cyanogenmod/wallpapers/photophase/transitions/NullTransition.java b/src/org/cyanogenmod/wallpapers/photophase/transitions/NullTransition.java
index 66f89d1..3087a38 100644
--- a/src/org/cyanogenmod/wallpapers/photophase/transitions/NullTransition.java
+++ b/src/org/cyanogenmod/wallpapers/photophase/transitions/NullTransition.java
@@ -27,7 +27,8 @@ import org.cyanogenmod.wallpapers.photophase.TextureManager;
import org.cyanogenmod.wallpapers.photophase.transitions.Transitions.TRANSITIONS;
import java.nio.FloatBuffer;
-import java.nio.ShortBuffer;
+
+import javax.microedition.khronos.opengles.GL10;
/**
* A special transition that does nothing other than draw the {@link PhotoFrame}
@@ -163,13 +164,14 @@ public class NullTransition extends Transition {
GLESUtil.glesCheckError("glUniformMatrix4fv");
// Draw the photo frame
- ShortBuffer vertexOrderBuffer = target.getVertexOrderBuffer();
- vertexOrderBuffer.position(0);
- GLES20.glDrawElements(
- GLES20.GL_TRIANGLE_FAN,
- 6,
- GLES20.GL_UNSIGNED_SHORT,
- vertexOrderBuffer);
+// ShortBuffer vertexOrderBuffer = target.getVertexOrderBuffer();
+// vertexOrderBuffer.position(0);
+// GLES20.glDrawElements(
+// GLES20.GL_TRIANGLE_FAN,
+// 6,
+// GLES20.GL_UNSIGNED_SHORT,
+// vertexOrderBuffer);
+ GLES20.glDrawArrays(GL10.GL_TRIANGLE_STRIP, 0, 4);
GLESUtil.glesCheckError("glDrawElements");
// Disable attributes