Loading src/com/android/gallery3d/ui/GLCanvasImpl.java +2 −2 Original line number Diff line number Diff line Loading @@ -673,13 +673,13 @@ public class GLCanvasImpl implements GLCanvas { synchronized (mUnboundTextures) { IntArray ids = mUnboundTextures; if (ids.size() > 0) { GLId.glDeleteTextures(ids.size(), ids.getInternalArray(), 0); GLId.glDeleteTextures(mGL, ids.size(), ids.getInternalArray(), 0); ids.clear(); } ids = mDeleteBuffers; if (ids.size() > 0) { GLId.glDeleteBuffers(ids.size(), ids.getInternalArray(), 0); GLId.glDeleteBuffers(mGL, ids.size(), ids.getInternalArray(), 0); ids.clear(); } } Loading src/com/android/gallery3d/ui/GLId.java +6 −2 Original line number Diff line number Diff line Loading @@ -16,6 +16,8 @@ package com.android.gallery3d.ui; import javax.microedition.khronos.opengles.GL11; // This mimics corresponding GL functions. public class GLId { static int sNextId = 1; Loading @@ -32,9 +34,11 @@ public class GLId { } } public synchronized static void glDeleteTextures(int n, int[] textures, int offset) { public synchronized static void glDeleteTextures(GL11 gl, int n, int[] textures, int offset) { gl.glDeleteTextures(n, textures, offset); } public synchronized static void glDeleteBuffers(int n, int[] buffers, int offset) { public synchronized static void glDeleteBuffers(GL11 gl, int n, int[] buffers, int offset) { gl.glDeleteBuffers(n, buffers, offset); } } Loading
src/com/android/gallery3d/ui/GLCanvasImpl.java +2 −2 Original line number Diff line number Diff line Loading @@ -673,13 +673,13 @@ public class GLCanvasImpl implements GLCanvas { synchronized (mUnboundTextures) { IntArray ids = mUnboundTextures; if (ids.size() > 0) { GLId.glDeleteTextures(ids.size(), ids.getInternalArray(), 0); GLId.glDeleteTextures(mGL, ids.size(), ids.getInternalArray(), 0); ids.clear(); } ids = mDeleteBuffers; if (ids.size() > 0) { GLId.glDeleteBuffers(ids.size(), ids.getInternalArray(), 0); GLId.glDeleteBuffers(mGL, ids.size(), ids.getInternalArray(), 0); ids.clear(); } } Loading
src/com/android/gallery3d/ui/GLId.java +6 −2 Original line number Diff line number Diff line Loading @@ -16,6 +16,8 @@ package com.android.gallery3d.ui; import javax.microedition.khronos.opengles.GL11; // This mimics corresponding GL functions. public class GLId { static int sNextId = 1; Loading @@ -32,9 +34,11 @@ public class GLId { } } public synchronized static void glDeleteTextures(int n, int[] textures, int offset) { public synchronized static void glDeleteTextures(GL11 gl, int n, int[] textures, int offset) { gl.glDeleteTextures(n, textures, offset); } public synchronized static void glDeleteBuffers(int n, int[] buffers, int offset) { public synchronized static void glDeleteBuffers(GL11 gl, int n, int[] buffers, int offset) { gl.glDeleteBuffers(n, buffers, offset); } }