Merge pull request #1751 from SnapperTT/master

Fixes blitter not taking into account homogeneousDepth
This commit is contained in:
Бранимир Караџић 2019-04-30 21:32:20 -07:00 committed by GitHub
commit 5336ceaa3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3074,7 +3074,7 @@ BX_TRACE("%d, %d, %d, %s", _array, _srgb, _mipAutogen, getName(_format) );
GL_CHECK(glUniform1i(program.m_sampler[0], 0) ); GL_CHECK(glUniform1i(program.m_sampler[0], 0) );
float proj[16]; 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 GL_CHECK(glUniformMatrix4fv(program.m_predefined[0].m_loc
, 1 , 1