diff --git a/platforms/sdl/main.cpp b/platforms/sdl/main.cpp index 9057905..0cbc091 100644 --- a/platforms/sdl/main.cpp +++ b/platforms/sdl/main.cpp @@ -7,7 +7,7 @@ #include "App.hpp" #ifdef __EMSCRIPTEN__ #include "../emscripten/AppPlatform_emscripten.hpp" -typedef AppPlatform_emscripten UsedAppPlatform +typedef AppPlatform_emscripten UsedAppPlatform; #else #include "AppPlatform_sdl.hpp" typedef AppPlatform_sdl UsedAppPlatform; diff --git a/source/client/gui/Screen.cpp b/source/client/gui/Screen.cpp index 79bbdf0..1c3dd11 100644 --- a/source/client/gui/Screen.cpp +++ b/source/client/gui/Screen.cpp @@ -195,10 +195,13 @@ void Screen::renderMenuBackground(float f) ym = 0.0f; xm = 1.0f; break; + default: + goto skip_rotate; } glRotatef(ang, xm, ym, 0.0f); + skip_rotate: m_pMinecraft->m_pTextures->setSmoothing(true); m_pMinecraft->m_pTextures->setClampToEdge(true); m_pMinecraft->m_pTextures->loadAndBindTexture(std::string(g_panoramaList[i]));