Worked around render target bug on macOS
This commit is contained in:
parent
ce7ced5488
commit
fe39af4ec8
@ -373,6 +373,12 @@ void RenderTarget::resetGLStates()
|
||||
// Check here to make sure a context change does not happen after activate(true)
|
||||
bool shaderAvailable = Shader::isAvailable();
|
||||
|
||||
// Workaround for states not being properly reset on
|
||||
// macOS unless a context switch really takes place
|
||||
#if defined(SFML_SYSTEM_MACOS)
|
||||
setActive(false);
|
||||
#endif
|
||||
|
||||
if (setActive(true))
|
||||
{
|
||||
// Make sure that extensions are initialized
|
||||
|
Loading…
Reference in New Issue
Block a user