mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 22:31:09 +08:00
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)
|
// Check here to make sure a context change does not happen after activate(true)
|
||||||
bool shaderAvailable = Shader::isAvailable();
|
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))
|
if (setActive(true))
|
||||||
{
|
{
|
||||||
// Make sure that extensions are initialized
|
// Make sure that extensions are initialized
|
||||||
|
Loading…
Reference in New Issue
Block a user