mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-24 13:01:48 +00:00
- use the predefined fullscreen vertices for clearing a portal instead of using the quad drawer.
This commit is contained in:
parent
74ede7bb4e
commit
a5c0f9a548
2 changed files with 3 additions and 6 deletions
|
@ -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);
|
||||
|
|
|
@ -267,3 +267,5 @@ public:
|
|||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue