summaryrefslogtreecommitdiffstats
path: root/src/Render.cpp
diff options
context:
space:
mode:
authorLaG1924 <12997935+LaG1924@users.noreply.github.com>2017-09-23 17:55:08 +0200
committerLaG1924 <12997935+LaG1924@users.noreply.github.com>2018-01-13 03:39:32 +0100
commit437cf879808fb68a79e7f8325615737f86f434be (patch)
treedb9dcb8c02606dc8bfc7478e058291b6cec076cf /src/Render.cpp
parent2017-09-20 (diff)
downloadAltCraft-437cf879808fb68a79e7f8325615737f86f434be.tar
AltCraft-437cf879808fb68a79e7f8325615737f86f434be.tar.gz
AltCraft-437cf879808fb68a79e7f8325615737f86f434be.tar.bz2
AltCraft-437cf879808fb68a79e7f8325615737f86f434be.tar.lz
AltCraft-437cf879808fb68a79e7f8325615737f86f434be.tar.xz
AltCraft-437cf879808fb68a79e7f8325615737f86f434be.tar.zst
AltCraft-437cf879808fb68a79e7f8325615737f86f434be.zip
Diffstat (limited to '')
-rw-r--r--src/Render.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Render.cpp b/src/Render.cpp
index 1473ae0..ffa219a 100644
--- a/src/Render.cpp
+++ b/src/Render.cpp
@@ -64,9 +64,11 @@ void Render::InitGlew() {
glViewport(0, 0, width, height);
glClearColor(0.8,0.8,0.8, 1.0f);
glEnable(GL_DEPTH_TEST);
+
glEnable(GL_CULL_FACE);
glCullFace(GL_BACK);
glFrontFace(GL_CCW);
+
glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
glCheckError();