mirror of https://github.com/stella-emu/stella.git
abort dialog rendering if surface is null (fixes #1078)
This commit is contained in:
parent
8421af8931
commit
3d3f223a17
|
@ -339,6 +339,10 @@ void Dialog::render()
|
|||
//cerr << " render " << typeid(*this).name() << '\n';
|
||||
#endif
|
||||
|
||||
if(_surface == NULL) {
|
||||
return; // fixes #1078
|
||||
}
|
||||
|
||||
// Update dialog surface; also render any extra surfaces
|
||||
// Extra surfaces must be rendered afterwards, so they are drawn on top
|
||||
if(_surface->render())
|
||||
|
|
Loading…
Reference in New Issue