Added extra buffer==null checks to active render loop
This commit is contained in:
parent
9bf78f0f70
commit
d6f5ef4e46
@ -90,7 +90,7 @@ class ActiveRenderLoop implements Runnable {
|
|||||||
graphics.dispose();
|
graphics.dispose();
|
||||||
|
|
||||||
// blit the back buffer to the screen
|
// blit the back buffer to the screen
|
||||||
if (!buffer.contentsLost()) {
|
if (buffer != null && !buffer.contentsLost()) {
|
||||||
buffer.show();
|
buffer.show();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user