mirror of
https://github.com/SFML/SFML.git
synced 2025-02-23 14:56:02 +08:00
sf::Context::getActiveContext could return an inactive context if RenderTargets activation occured since the last sf::Context activation. This is not what its documentation suggest, and was clearly an unexpected behaviour. This fix make the function return NULL if the current active context is not managed by sf::Context (e.g. because it is a RenderTarget).