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