summaryrefslogtreecommitdiff
path: root/gfx
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-01-26 21:15:16 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2021-01-26 21:15:16 +0000
commit96583aa91aa88d57fa9d7d8585e0913d5ff2981f (patch)
treedec31449dd7a988d6c4e75ad481ba1ec01e5c478 /gfx
parentBasic mouse navigation (diff)
downloadilt-96583aa91aa88d57fa9d7d8585e0913d5ff2981f.tar.bz2
ilt-96583aa91aa88d57fa9d7d8585e0913d5ff2981f.tar.xz
ilt-96583aa91aa88d57fa9d7d8585e0913d5ff2981f.zip
Enable alpha in textures
Diffstat (limited to 'gfx')
-rw-r--r--gfx/window.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/gfx/window.cpp b/gfx/window.cpp
index 2f94d1a..f7bb125 100644
--- a/gfx/window.cpp
+++ b/gfx/window.cpp
@@ -14,6 +14,8 @@ Window::Window(int width, int height, const std::string & title) :
glEnable(GL_DEPTH_TEST);
glEnable(GL_CULL_FACE);
glCullFace(GL_BACK);
+ glEnable(GL_BLEND);
+ glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
}
void