shithub: cstory

Download patch

ref: eab2a80ae522d22b763846b0674c401647db9602
parent: 42765792bcf3f79b850edaad6738d49303199437
author: Clownacy <Clownacy@users.noreply.github.com>
date: Wed Jul 31 00:52:31 EDT 2019

Remove some vestigal matrix code

--- a/src/Backends/Rendering/OpenGL2.cpp
+++ b/src/Backends/Rendering/OpenGL2.cpp
@@ -236,11 +236,7 @@
 
 	glViewport(0, 0, framebuffer_surface.width, framebuffer_surface.height);
 
-	glLoadIdentity();
-	glOrtho(0.0, framebuffer_surface.width, 0.0, framebuffer_surface.height, 1.0, -1.0);
-
 	// Draw framebuffer to screen
-	glPushMatrix();
 	glLoadIdentity();
 
 	glBindTexture(GL_TEXTURE_2D, framebuffer_surface.texture_id);
@@ -264,8 +260,6 @@
 	vertex_buffer[3][1] = 1.0f;
 
 	glDrawArrays(GL_QUADS, 0, 4);
-
-	glPopMatrix();
 
 	SDL_GL_SwapWindow(window);