From 2f94b13720ec19bad59b176140ea62943469ab7e Mon Sep 17 00:00:00 2001 From: Xottab-DUTY Date: Wed, 22 Jan 2020 21:35:45 +0500 Subject: [PATCH] Fixed stack overflow on OpenGL after 0d36341210656c2d98dce0113c4e4a4341e2d075 --- src/Layers/xrRenderGL/glState.cpp | 5 ----- src/Layers/xrRenderGL/glState.h | 1 - 2 files changed, 6 deletions(-) diff --git a/src/Layers/xrRenderGL/glState.cpp b/src/Layers/xrRenderGL/glState.cpp index 82a196a4b95..476acf518a7 100644 --- a/src/Layers/xrRenderGL/glState.cpp +++ b/src/Layers/xrRenderGL/glState.cpp @@ -30,11 +30,6 @@ glState::glState() m_pBlendState.ColorMask = 0xF; } -glState::~glState() -{ - Release(); -} - glState* glState::Create() { return new glState(); diff --git a/src/Layers/xrRenderGL/glState.h b/src/Layers/xrRenderGL/glState.h index 1ad86b70810..75ae6134371 100644 --- a/src/Layers/xrRenderGL/glState.h +++ b/src/Layers/xrRenderGL/glState.h @@ -40,7 +40,6 @@ class glState public: glState(); - ~glState(); static glState* Create();