Fix XmlResourceTexture bounds error
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user