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];