From b22e828e41fdb2aee4164c8172c2a0a8af4e27a4 Mon Sep 17 00:00:00 2001 From: yabause Date: Sun, 19 Oct 2008 15:37:16 +0000 Subject: [PATCH] Another warnings fix patch by riccardom, this is also protecting the non-portable DebugDumpTexture. --- desmume/src/OGLRender.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/desmume/src/OGLRender.cpp b/desmume/src/OGLRender.cpp index cee294df1..924d0acb4 100644 --- a/desmume/src/OGLRender.cpp +++ b/desmume/src/OGLRender.cpp @@ -53,13 +53,15 @@ static void ENDGL() { #include #include #include -#elif DESMUME_COCOA +#else +#ifdef DESMUME_COCOA #include #include -#else +#else #include #include #endif +#endif #include "types.h" #include "debug.h" @@ -88,7 +90,7 @@ float clearAlpha; //raw ds format poly attributes, installed from the display list -static u32 polyAttr=0,textureFormat=0, texturePalette=0; +static u32 textureFormat=0, texturePalette=0; //derived values extracted from polyattr etc static bool wireframe=false, alpha31=false; @@ -440,7 +442,7 @@ void* memcpy_fast(void* dest, const void* src, size_t count) #endif -#ifdef DEBUG_DUMP_TEXTURE +#ifdef DEBUG_DUMP_TEXTURE && WIN32 static void DebugDumpTexture(int which) { char fname[100];