Fix black screen

This commit is contained in:
Magnus Norddahl 2019-12-29 05:10:36 +01:00
parent 7c6dc7a7db
commit 26dbf5fe10

View file

@ -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