fixed NPE

This commit is contained in:
javasabr 2016-03-29 06:48:47 +03:00
parent 7a3a0627c2
commit 98f1bfc0c1

View File

@ -540,8 +540,10 @@ public class LegacyApplication implements Application, SystemListener {
* Internal use only. * Internal use only.
*/ */
public void reshape(int w, int h){ public void reshape(int w, int h){
if (renderManager != null) {
renderManager.notifyReshape(w, h); renderManager.notifyReshape(w, h);
} }
}
/** /**
* Restarts the context, applying any changed settings. * Restarts the context, applying any changed settings.