From f2b8e6397b3420f01b463d549ccc145ddf152dea Mon Sep 17 00:00:00 2001 From: binary1248 Date: Fri, 30 Aug 2019 23:05:03 +0200 Subject: [PATCH] Remove the glFlush() call that became unnecessary after 3871e01a9fd8c9c889eeb9ad56ff6dc386be15d3 was merged. This also fixes glFlush() being called in a state in which no context would be active in specific use cases. --- src/SFML/Graphics/Texture.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/SFML/Graphics/Texture.cpp b/src/SFML/Graphics/Texture.cpp index 9cf7b19c..0d4c396f 100644 --- a/src/SFML/Graphics/Texture.cpp +++ b/src/SFML/Graphics/Texture.cpp @@ -92,10 +92,6 @@ m_cacheId (getUniqueId()) if (create(copy.getSize().x, copy.getSize().y)) { update(copy); - - // Force an OpenGL flush, so that the texture will appear updated - // in all contexts immediately (solves problems in multi-threaded apps) - glCheck(glFlush()); } else {