Remove some vestigal matrix code

This commit is contained in:
Clownacy 2019-07-31 04:52:31 +00:00
parent 42765792bc
commit eab2a80ae5

View file

@ -236,11 +236,7 @@ void Backend_DrawScreen(void)
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);
@ -265,8 +261,6 @@ void Backend_DrawScreen(void)
glDrawArrays(GL_QUADS, 0, 4);
glPopMatrix();
SDL_GL_SwapWindow(window);
// According to https://www.khronos.org/opengl/wiki/Common_Mistakes#Swap_Buffers