From 1df7e47a89c28eba9e63176632fb7b0241c6155d Mon Sep 17 00:00:00 2001 From: Azaezel Date: Thu, 13 Aug 2015 15:34:41 -0500 Subject: [PATCH] From @LuisAntonRebollo -Stymies infinite loop on exit with SDL2+opengl on windows. --- Engine/source/gfx/gl/gfxGLCircularVolatileBuffer.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Engine/source/gfx/gl/gfxGLCircularVolatileBuffer.h b/Engine/source/gfx/gl/gfxGLCircularVolatileBuffer.h index 6524a75f5..c291cb229 100644 --- a/Engine/source/gfx/gl/gfxGLCircularVolatileBuffer.h +++ b/Engine/source/gfx/gl/gfxGLCircularVolatileBuffer.h @@ -14,7 +14,9 @@ public: ~GLFenceRange() { - AssertFatal( mSync == 0, ""); + //the order of creation/destruction of static variables is indetermined... depends on detail of the build + //looks like for some reason on windows + sdl + opengl the order make invalid / wrong the process TODO: Refactor -LAR + //AssertFatal( mSync == 0, ""); } void init(U32 start, U32 end) @@ -87,7 +89,9 @@ public: ~GLOrderedFenceRangeManager( ) { - waitAllRanges( ); + //the order of creation/destruction of static variables is indetermined... depends on detail of the build + //looks like for some reason on windows + sdl + opengl the order make invalid / wrong the process TODO: Refactor -LAR + //waitAllRanges( ); } void protectOrderedRange( U32 start, U32 end )