Remove some vestigal matrix code
This commit is contained in:
parent
42765792bc
commit
eab2a80ae5
1 changed files with 0 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue