Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/org/andengine/opengl/texture/bitmap/BitmapTexture.java
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ protected void writeTextureToHardware(final GLState pGLState) throws IOException
final Bitmap bitmap = this.onGetBitmap(bitmapConfig);

if(bitmap == null) {
throw new NullBitmapException("Caused by: '" + this.toString() + "'.");
throw new NullBitmapException("Caused by: '" + this.toString() + "' (mInputStreamOpener=" + mInputStreamOpener + ").");
}

final boolean useDefaultAlignment = MathUtils.isPowerOfTwo(bitmap.getWidth()) && MathUtils.isPowerOfTwo(bitmap.getHeight()) && (this.mPixelFormat == PixelFormat.RGBA_8888);
Expand Down
6 changes: 6 additions & 0 deletions src/org/andengine/util/adt/io/in/AssetInputStreamOpener.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ public InputStream open() throws IOException {
return this.mAssetManager.open(this.mAssetPath);
}

@Override
public String toString() {
return "AssetInputStreamOpener [mAssetManager=" + mAssetManager + ", mAssetPath=" + mAssetPath + "]";
}


// ===========================================================
// Methods
// ===========================================================
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ public InputStream open() throws IOException {
return new ByteArrayInputStream(this.mBytes, this.mOffset, this.mLength);
}

@Override
public String toString() {
return "ByteArrayInputStreamOpener [mBytes" + (mBytes == null ? "=null" : ".size=" + mBytes.length) + ", mOffset=" + mOffset + ", mLength=" + mLength + "]";
}


// ===========================================================
// Methods
// ===========================================================
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ public InputStream open() throws IOException {
return this.mResources.openRawResource(this.mResourceID);
}

@Override
public String toString() {
return "ResourceInputStreamOpener [mResources=" + mResources + ", mResourceID=" + mResourceID + "]";
}

// ===========================================================
// Methods
// ===========================================================
Expand Down