zzogl-pg: fix a potential issue when logging is disabled

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3767 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
gregory.hainaut@gmail.com 2010-09-14 11:53:53 +00:00
parent 40fa31a64e
commit 997db8ef05
1 changed files with 4 additions and 2 deletions

View File

@ -164,9 +164,11 @@ void Greg_Log(const char *fmt, ...)
va_start(list, fmt);
fprintf(gsLog, "GRegs: ");
if (IsLogging()) {
fprintf(gsLog, "GRegs: ");
vfprintf(gsLog, fmt, list);
}
//fprintf(stderr,"GRegs: ");
if (IsLogging()) vfprintf(gsLog, fmt, list);
//vfprintf(stderr, fmt, list);
va_end(list);