mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 18:45:54 -05:00
GL: Fixed MRT clear depth value.
This commit is contained in:
parent
4992ef296b
commit
3c6ee5fbcb
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue