mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
Fix black screen
This commit is contained in:
parent
7c6dc7a7db
commit
26dbf5fe10
1 changed files with 4 additions and 4 deletions
|
@ -58,13 +58,13 @@ void FGLRenderer::RenderScreenQuad()
|
||||||
glDrawArrays(GL_TRIANGLE_STRIP, FFlatVertexBuffer::PRESENT_INDEX, 4);
|
glDrawArrays(GL_TRIANGLE_STRIP, FFlatVertexBuffer::PRESENT_INDEX, 4);
|
||||||
#else
|
#else
|
||||||
glBegin(GL_TRIANGLE_STRIP);
|
glBegin(GL_TRIANGLE_STRIP);
|
||||||
glTexCoord2f(0, 0);
|
glVertexAttrib2f(1, 0, 0);
|
||||||
glVertex2f(-1, -1);
|
glVertex2f(-1, -1);
|
||||||
glTexCoord2f(0, 1);
|
glVertexAttrib2f(1, 0, 1);
|
||||||
glVertex2f(-1, 1);
|
glVertex2f(-1, 1);
|
||||||
glTexCoord2f(1, 0);
|
glVertexAttrib2f(1, 1, 0);
|
||||||
glVertex2f(1, -1);
|
glVertex2f(1, -1);
|
||||||
glTexCoord2f(1, 1);
|
glVertexAttrib2f(1, 1, 1);
|
||||||
glVertex2f(1,1);
|
glVertex2f(1,1);
|
||||||
glEnd();
|
glEnd();
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue