From 9555617816206fbe62dee5869aaa0c90223074b3 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 22 Aug 2016 22:02:02 +0200 Subject: [PATCH] - fixed: The default for position.w is 1, so gl_quaddrawer.cpp needs to set this, too, for the uniform vertex positions. --- src/gl/renderer/gl_quaddrawer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gl/renderer/gl_quaddrawer.cpp b/src/gl/renderer/gl_quaddrawer.cpp index b80f123e0..4dbd52a98 100644 --- a/src/gl/renderer/gl_quaddrawer.cpp +++ b/src/gl/renderer/gl_quaddrawer.cpp @@ -72,9 +72,10 @@ void FQuadDrawer::DoRender(int type) matV[i*4+0] = buffer[i].x; matV[i*4+1] = buffer[i].z; matV[i*4+2] = buffer[i].y; + matV[i*4+3] = 1; matT[i*4+0] = buffer[i].u; matT[i*4+1] = buffer[i].v; - matV[i*4+3] = matT[i*4+2] = matT[i*4+3] = 0; + matT[i*4+2] = matT[i*4+3] = 0; } FShader *shader = GLRenderer->mShaderManager->GetActiveShader(); glUniformMatrix4fv(shader->vertexmatrix_index, 1, false, matV);