|
@@ -252,8 +252,6 @@ bool Graphics::setMode(int width, int height)
|
|
|
|
|
|
created = true;
|
|
|
|
|
|
- setViewportSize(width, height);
|
|
|
-
|
|
|
// Enable blending
|
|
|
glEnable(GL_BLEND);
|
|
|
|
|
@@ -310,6 +308,8 @@ bool Graphics::setMode(int width, int height)
|
|
|
if (quadIndices == nullptr)
|
|
|
quadIndices = new QuadIndices(20);
|
|
|
|
|
|
+ setViewportSize(width, height);
|
|
|
+
|
|
|
// Restore the graphics state.
|
|
|
restoreState(states.back());
|
|
|
|