From 1f68fe78e84f25c8ddacdc37a293a5de31725bab Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 1 Jan 2022 13:01:08 +0000 Subject: First iteration with font/text support --- ui/window.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui/window.cpp') diff --git a/ui/window.cpp b/ui/window.cpp index 13c7d95..6a263aa 100644 --- a/ui/window.cpp +++ b/ui/window.cpp @@ -13,6 +13,7 @@ SDL_GL_CreateContextAndGlewInit(SDL_Window * w) if (glewInit() != GLEW_OK) { throw std::runtime_error {"Glew failed to initialize!"}; } + glPixelStorei(GL_UNPACK_ALIGNMENT, 1); glEnable(GL_CULL_FACE); glCullFace(GL_BACK); glEnable(GL_BLEND); @@ -89,7 +90,6 @@ Window::refresh(const GameState * gameState) const void Window::render(const GameState *) const { - uiShader.use(); glDisable(GL_DEPTH_TEST); uiComponents.apply(&UIComponent::render, uiShader, UIComponent::Position {}); } -- cgit v1.2.3