diff options
Diffstat (limited to 'nGenEx')
-rw-r--r-- | nGenEx/Game.cpp | 2 | ||||
-rw-r--r-- | nGenEx/VideoDX9.cpp | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/nGenEx/Game.cpp b/nGenEx/Game.cpp index 2518371..7e17ebb 100644 --- a/nGenEx/Game.cpp +++ b/nGenEx/Game.cpp @@ -32,7 +32,7 @@ FILE* ErrLog = 0;
int ErrLine = 0;
-char ErrBuf[256];
+char ErrBuf[1024];
Game* game = 0;
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) {
|