Fix XmlResourceTexture bounds error

This commit is contained in:
seven332 committed 2015-08-11 22:31:10 +08:00
1 parent 89f9df6e44
commit b4d3c430a0
1 file changed
+4 -4
@@ -48,16 +48,16 @@ public class XmlResourceTexture extends UploadedTexture {
int width = mWidth;
int height = mHeight;
if (mWidth <= 0) {
if (width <= 0) {
width = drawable.getIntrinsicWidth();
}
if (mHeight <= 0) {
if (height <= 0) {
height = drawable.getIntrinsicHeight();
}
if (mWidth <= 0) {
if (width <= 0) {
width = 1;
}
if (mHeight <= 0) {
if (height <= 0) {
height = 1;
}