summaryrefslogtreecommitdiffhomepage
path: root/nGenEx/VideoDX9.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'nGenEx/VideoDX9.cpp')
-rw-r--r--nGenEx/VideoDX9.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/nGenEx/VideoDX9.cpp b/nGenEx/VideoDX9.cpp
index c393eed..d3c623c 100644
--- a/nGenEx/VideoDX9.cpp
+++ b/nGenEx/VideoDX9.cpp
@@ -662,11 +662,10 @@ VideoDX9::CreateBuffers()
::fread(magic_fx_code, magic_fx_code_len, 1, f);
magic_fx_code[magic_fx_code_len] = 0;
}
+ ::fclose(f);
} else if (loader) {
magic_fx_code_len = loader->LoadBuffer("magic.fx", magic_fx_code, true, true);
}
-
- ::fclose(f);
}
if (video_settings.use_effects && magic_fx_code && magic_fx_code_len) {