v0.4.2a: fixed null pointer exceptions involving image vertex buffers
This commit is contained in:
parent
cb1f63890b
commit
1de87689b3
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user