Bug Fix

fixed a bug when starting application and trying to resize OpenGL
without existing OpenGL context