diff options
author | FWoltermann@gmail.com <FWoltermann@gmail.com@076cb2c4-205e-83fd-5cf3-1be9aa105544> | 2012-06-02 21:47:17 +0000 |
---|---|---|
committer | FWoltermann@gmail.com <FWoltermann@gmail.com@076cb2c4-205e-83fd-5cf3-1be9aa105544> | 2012-06-02 21:47:17 +0000 |
commit | 85f40a1f3a1cb4bfcccc7b3bc163cfbd98a1abf3 (patch) | |
tree | 0fab862acc256353947dc0d60672733c3360b887 | |
parent | 8898ad9b25fca6afe2374d293a981db02a83d7e9 (diff) | |
download | starshatter-85f40a1f3a1cb4bfcccc7b3bc163cfbd98a1abf3.zip starshatter-85f40a1f3a1cb4bfcccc7b3bc163cfbd98a1abf3.tar.gz starshatter-85f40a1f3a1cb4bfcccc7b3bc163cfbd98a1abf3.tar.bz2 |
Fixes a stupid error I made. Also increases hte buffer for error messages to accommodate DirectX error messages
-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) {
|