Loading src/com/android/gallery3d/glrenderer/UploadedTexture.java +10 −6 Original line number Diff line number Diff line Loading @@ -192,16 +192,20 @@ public abstract class UploadedTexture extends BasicTexture { try { uploadToCanvas(canvas); } catch (RuntimeException e) { mContentValid = true; mContentValid = false; e.printStackTrace(); } } else if (!mContentValid) { Bitmap bitmap = getBitmap(); if (bitmap != null) { int format = GLUtils.getInternalFormat(bitmap); int type = GLUtils.getType(bitmap); canvas.texSubImage2D(this, mBorder, mBorder, bitmap, format, type); freeBitmap(); mContentValid = true; } else { mContentValid = false; } } } Loading Loading
src/com/android/gallery3d/glrenderer/UploadedTexture.java +10 −6 Original line number Diff line number Diff line Loading @@ -192,16 +192,20 @@ public abstract class UploadedTexture extends BasicTexture { try { uploadToCanvas(canvas); } catch (RuntimeException e) { mContentValid = true; mContentValid = false; e.printStackTrace(); } } else if (!mContentValid) { Bitmap bitmap = getBitmap(); if (bitmap != null) { int format = GLUtils.getInternalFormat(bitmap); int type = GLUtils.getType(bitmap); canvas.texSubImage2D(this, mBorder, mBorder, bitmap, format, type); freeBitmap(); mContentValid = true; } else { mContentValid = false; } } } Loading