From e47258c61d0d5ce47330c311c8ebd03a9026a9f6 Mon Sep 17 00:00:00 2001 From: Ian Curtis Date: Mon, 7 Nov 2022 23:52:44 +0000 Subject: [PATCH] Remove some left over depreciated opengl functions. They were basically no-op anyway with shader path. --- Src/OSD/SDL/Main.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/Src/OSD/SDL/Main.cpp b/Src/OSD/SDL/Main.cpp index c10d52a..e0267e9 100644 --- a/Src/OSD/SDL/Main.cpp +++ b/Src/OSD/SDL/Main.cpp @@ -889,15 +889,8 @@ static void UpdateCrosshairs(uint32_t currentInputs, CInputs *Inputs, unsigned c // Set up the viewport and orthogonal projection glUseProgram(0); // no shaders glViewport(xOffset, yOffset, xRes, yRes); - glMatrixMode(GL_PROJECTION); - glLoadIdentity(); - gluOrtho2D(0.0, 1.0, 1.0, 0.0); - glMatrixMode(GL_MODELVIEW); - glLoadIdentity(); - glDisable(GL_TEXTURE_2D); // no texture mapping glDisable(GL_BLEND); // no blending glDisable(GL_DEPTH_TEST); // no Z-buffering needed - glDisable(GL_LIGHTING); New3D::Mat4 m; m.Ortho(0.0, 1.0, 1.0, 0.0, -1.0f, 1.0f);