Qt: Fix shaders not applying when display is loaded (#3100)

Co-authored-by: Vicki Pfau <vi@endrift.com>
This commit is contained in:
luc-git 2024-01-07 07:47:11 +01:00 committed by GitHub
parent d83b2f99cd
commit 48253afc54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -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);