Revision c7e23561
Added by Leszek Koltunski over 3 years ago
src/main/java/org/distorted/objects/TwistyObject.java | ||
---|---|---|
34 | 34 |
import org.distorted.library.effect.VertexEffectQuaternion; |
35 | 35 |
import org.distorted.library.effect.VertexEffectRotate; |
36 | 36 |
import org.distorted.library.main.DistortedEffects; |
37 |
import org.distorted.library.main.DistortedLibrary; |
|
37 | 38 |
import org.distorted.library.main.DistortedNode; |
38 | 39 |
import org.distorted.library.main.DistortedTexture; |
39 | 40 |
import org.distorted.library.mesh.MeshBase; |
... | ... | |
390 | 391 |
createFaceTexture(canvas, paint, i, i*TEXTURE_HEIGHT); |
391 | 392 |
} |
392 | 393 |
|
393 |
mTexture.setTexture(bitmap); |
|
394 |
if( !mTexture.setTexture(bitmap) ) |
|
395 |
{ |
|
396 |
int max = DistortedLibrary.getMaxTextureSize(); |
|
397 |
FirebaseCrashlytics crashlytics = FirebaseCrashlytics.getInstance(); |
|
398 |
crashlytics.log("failed to set texture of size "+bitmap.getWidth()+"x"+bitmap.getHeight()+" max is "+max); |
|
399 |
} |
|
394 | 400 |
} |
395 | 401 |
|
396 | 402 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Report to Crashlytics if the fail to set texture due to it being too large.