diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-01-26 21:15:16 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-01-26 21:15:16 +0000 |
commit | 96583aa91aa88d57fa9d7d8585e0913d5ff2981f (patch) | |
tree | dec31449dd7a988d6c4e75ad481ba1ec01e5c478 | |
parent | Basic mouse navigation (diff) | |
download | ilt-96583aa91aa88d57fa9d7d8585e0913d5ff2981f.tar.bz2 ilt-96583aa91aa88d57fa9d7d8585e0913d5ff2981f.tar.xz ilt-96583aa91aa88d57fa9d7d8585e0913d5ff2981f.zip |
Enable alpha in textures
-rw-r--r-- | gfx/window.cpp | 2 |
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
|