summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFWoltermann@gmail.com <FWoltermann@gmail.com@076cb2c4-205e-83fd-5cf3-1be9aa105544>2012-06-02 21:47:17 +0000
committerFWoltermann@gmail.com <FWoltermann@gmail.com@076cb2c4-205e-83fd-5cf3-1be9aa105544>2012-06-02 21:47:17 +0000
commit85f40a1f3a1cb4bfcccc7b3bc163cfbd98a1abf3 (patch)
tree0fab862acc256353947dc0d60672733c3360b887
parent8898ad9b25fca6afe2374d293a981db02a83d7e9 (diff)
downloadstarshatter-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.cpp2
-rw-r--r--nGenEx/VideoDX9.cpp3
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) {