GL: Fixed MRT clear depth value.

This commit is contained in:
Branimir Karadžić 2015-08-21 10:58:22 -07:00
parent 4992ef296b
commit 3c6ee5fbcb
1 changed files with 1 additions and 1 deletions

View File

@ -2828,7 +2828,7 @@ namespace bgfx { namespace gl
Vertex* vertex = (Vertex*)_clearQuad.m_vb->data;
BX_CHECK(vertexDecl.m_stride == sizeof(Vertex), "Stride/Vertex mismatch (stride %d, sizeof(Vertex) %d)", vertexDecl.m_stride, sizeof(Vertex) );
const float depth = _clear.m_depth;
const float depth = _clear.m_depth * 2.0f - 1.0f;
vertex->m_x = -1.0f;
vertex->m_y = -1.0f;