- use the predefined fullscreen vertices for clearing a portal instead of using the quad drawer.

This commit is contained in:
Christoph Oelckers 2016-09-06 11:58:22 +02:00
parent 74ede7bb4e
commit a5c0f9a548
2 changed files with 3 additions and 6 deletions

View File

@ -137,12 +137,7 @@ void GLPortal::ClearScreen()
glDisable(GL_MULTISAMPLE);
glDisable(GL_DEPTH_TEST);
FQuadDrawer qd;
qd.Set(0, 0, 0, 0, 0, 0);
qd.Set(1, 0, SCREENHEIGHT, 0, 0, 0);
qd.Set(2, SCREENWIDTH, SCREENHEIGHT, 0, 0, 0);
qd.Set(3, SCREENWIDTH, 0, 0, 0, 0);
qd.Render(GL_TRIANGLE_FAN);
glDrawArrays(GL_TRIANGLE_STRIP, FFlatVertexBuffer::FULLSCREEN_INDEX, 4);
glEnable(GL_DEPTH_TEST);
gl_MatrixStack.Pop(gl_RenderState.mProjectionMatrix);

View File

@ -267,3 +267,5 @@ public:
};
#endif