mirror of https://github.com/mgba-emu/mgba.git
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