v0.4.2a: fixed null pointer exceptions involving image vertex buffers
This commit is contained in:
@@ -149,7 +149,7 @@ public class Image extends Visual {
|
|||||||
@Override
|
@Override
|
||||||
public void draw() {
|
public void draw() {
|
||||||
|
|
||||||
if (texture == null)
|
if (texture == null || (!dirty && buffer == null))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
super.draw();
|
super.draw();
|
||||||
|
|||||||
Reference in New Issue
Block a user