\r
/** Constructs a region the size of the specified texture. */\r
public TextureRegion (Texture texture) {\r
+ if (texture == null) throw new IllegalArgumentException("texture cannot be null.");\r
this.texture = texture;\r
setRegion(0, 0, texture.getWidth(), texture.getHeight());\r
}\r