mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Fix sign of depth in "Through" projection matrix. Thanks xele02. Fixes ToE, Dissidia, etc.
This commit is contained in:
parent
67272ec271
commit
eb130db387
1 changed files with 1 additions and 1 deletions
|
@ -243,7 +243,7 @@ void LinkedShader::updateUniforms() {
|
|||
if (u_proj_through != -1 && (dirtyUniforms & DIRTY_PROJTHROUGHMATRIX))
|
||||
{
|
||||
Matrix4x4 proj_through;
|
||||
proj_through.setOrtho(0.0f, 480, 272, 0, -1, 0); // TODO: Store this somewhere instead of regenerating! And not in each LinkedShader object!
|
||||
proj_through.setOrtho(0.0f, 480, 272, 0, 1, 0);
|
||||
glUniformMatrix4fv(u_proj_through, 1, GL_FALSE, proj_through.getReadPtr());
|
||||
}
|
||||
if (u_texenv != -1 && (dirtyUniforms & DIRTY_TEXENV)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue