mirror of
https://github.com/libretro/mgba.git
synced 2024-11-26 17:50:26 +00:00
Qt: Fix shaders not applying when display is loaded (#3100)
Co-authored-by: Vicki Pfau <vi@endrift.com>
This commit is contained in:
parent
d83b2f99cd
commit
48253afc54
@ -116,7 +116,10 @@ void QGBA::Display::configure(ConfigController* config) {
|
||||
config->updateOption("videoSync");
|
||||
#if defined(BUILD_GL) || defined(BUILD_GLES2) || defined(BUILD_GLES3)
|
||||
if (opts->shader && supportsShaders()) {
|
||||
struct VDir* shader = VDirOpen(opts->shader);
|
||||
struct VDir* shader = VDirOpenArchive(opts->shader);
|
||||
if (!shader) {
|
||||
shader = VDirOpen(opts->shader);
|
||||
}
|
||||
if (shader) {
|
||||
setShaders(shader);
|
||||
shader->close(shader);
|
||||
|
Loading…
Reference in New Issue
Block a user