fix resolution switching for batched renderer using lwjgl and jogl