summaryrefslogtreecommitdiffstats
path: root/src/Render.cpp
diff options
context:
space:
mode:
authorLaG1924 <lag1924@gmail.com>2021-11-19 11:02:11 +0100
committerLaG1924 <lag1924@gmail.com>2021-11-19 11:02:11 +0100
commitb99f058de08063cb1632a9ef35e4edb10097f31b (patch)
tree1e730998ba83b06a326e356a1b3b1f5ed3ef99b7 /src/Render.cpp
parentChanged sky rendering to Gal (diff)
downloadAltCraft-b99f058de08063cb1632a9ef35e4edb10097f31b.tar
AltCraft-b99f058de08063cb1632a9ef35e4edb10097f31b.tar.gz
AltCraft-b99f058de08063cb1632a9ef35e4edb10097f31b.tar.bz2
AltCraft-b99f058de08063cb1632a9ef35e4edb10097f31b.tar.lz
AltCraft-b99f058de08063cb1632a9ef35e4edb10097f31b.tar.xz
AltCraft-b99f058de08063cb1632a9ef35e4edb10097f31b.tar.zst
AltCraft-b99f058de08063cb1632a9ef35e4edb10097f31b.zip
Diffstat (limited to 'src/Render.cpp')
-rw-r--r--src/Render.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/Render.cpp b/src/Render.cpp
index 8b78efb..74582a1 100644
--- a/src/Render.cpp
+++ b/src/Render.cpp
@@ -127,11 +127,7 @@ void Render::InitGlew() {
}
void Render::PrepareToRendering() {
- //TextureAtlas texture
- glActiveTexture(GL_TEXTURE0);
- glBindTexture(GL_TEXTURE_2D_ARRAY, AssetManager::GetTextureAtlasId());
-
- int width, height;
+ int width, height;
SDL_GL_GetDrawableSize(window, &width, &height);
framebuffer = std::make_unique<Framebuffer>(width, height, true);
Framebuffer::GetDefault().Activate();