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
|
||||
public void draw() {
|
||||
|
||||
if (texture == null)
|
||||
if (texture == null || (!dirty && buffer == null))
|
||||
return;
|
||||
|
||||
super.draw();
|
||||
|
||||
Reference in New Issue
Block a user