From 96583aa91aa88d57fa9d7d8585e0913d5ff2981f Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Tue, 26 Jan 2021 21:15:16 +0000 Subject: Enable alpha in textures --- gfx/window.cpp | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit v1.2.3