1. rude
  2. love

Commits

Alex Szpakowski  committed e11a10b

Fixed segfault when garbage collecting Shader objects

  • Participants
  • Parent commits f87e369
  • Branches default

Comments (0)

Files changed (1)

File src/modules/graphics/opengl/Shader.cpp

View file
  • Ignore whitespace
 		detach();
 
 	for (auto it = boundRetainables.begin(); it != boundRetainables.end(); ++it)
-	{
 		it->second->release();
-		boundRetainables.erase(it);
-	}
+
+	boundRetainables.clear();
 
 	unloadVolatile();
 }