BACKENDS: OPENGL: Close old preset before opening a new one

This commit is contained in:
Le Philousophe 2022-11-01 14:23:03 +01:00
parent a6dd037079
commit 52903aff8a

View File

@ -337,6 +337,8 @@ void LibRetroPipeline::deactivateInternal() {
}
bool LibRetroPipeline::open(const Common::FSNode &shaderPreset) {
close();
_shaderPreset = LibRetro::parsePreset(shaderPreset);
if (!_shaderPreset)
return false;