This commit is contained in:
iProgramInCpp
2023-08-17 17:52:46 +03:00
parent 8a38dee562
commit 0ed807eaf3
2 changed files with 4 additions and 1 deletions

View File

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

View File

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