Better cleanup when the graphics and window subsystems are destroyed and restarted.

This commit is contained in:
Alex Szpakowski
2015-01-21 18:23:16 -04:00
parent e82d1dfe54
commit 18569979e9
2 changed files with 11 additions and 3 deletions
+2
View File
@@ -50,6 +50,8 @@ Graphics::Graphics()
, created(false)
, activeStencil(false)
{
gl = OpenGL();
states.reserve(10);
states.push_back(DisplayState());