From 85f40a1f3a1cb4bfcccc7b3bc163cfbd98a1abf3 Mon Sep 17 00:00:00 2001 From: "FWoltermann@gmail.com" Date: Sat, 2 Jun 2012 21:47:17 +0000 Subject: Fixes a stupid error I made. Also increases hte buffer for error messages to accommodate DirectX error messages --- nGenEx/Game.cpp | 2 +- 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) { -- cgit v1.1