Browse Source

Fixes blitter not taking into account homogeneousDepth

If the opengl render has been modified to allow glClipControl to create a hetrogeneous depth buffer then anything blitted using the internal blit() functions will set to z=-1 and culled, making things such as debug text invisible. This fixes this
SnapperTT 6 years ago
parent
commit
4842c84e56
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/renderer_gl.cpp

+ 1 - 1
src/renderer_gl.cpp

@@ -3074,7 +3074,7 @@ BX_TRACE("%d, %d, %d, %s", _array, _srgb, _mipAutogen, getName(_format) );
 			GL_CHECK(glUniform1i(program.m_sampler[0], 0) );
 
 			float proj[16];
-			bx::mtxOrtho(proj, 0.0f, (float)width, (float)height, 0.0f, 0.0f, 1000.0f, 0.0f, true);
+			bx::mtxOrtho(proj, 0.0f, (float)width, (float)height, 0.0f, 0.0f, 1000.0f, 0.0f, g_caps.homogeneousDepth);
 
 			GL_CHECK(glUniformMatrix4fv(program.m_predefined[0].m_loc
 				, 1