Skip to content

Commit

Permalink
Merge pull request #5857 from raven02/patch-1
Browse files Browse the repository at this point in the history
Regression fix #5769
  • Loading branch information
hrydgard committed Apr 13, 2014
2 parents f2bf8df + 568b14f commit 09c99fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GPU/GLES/StateMapping.cpp
Expand Up @@ -536,8 +536,8 @@ void TransformDrawEngine::ApplyDrawState(int prim) {
// Sadly, as glViewport takes integers, we will not be able to support sub pixel offsets this way. But meh.
// shaderManager_->DirtyUniform(DIRTY_PROJMATRIX);

float zScale = getFloat24(gstate.viewportz1) / 65536.0f;
float zOff = getFloat24(gstate.viewportz2) / 65536.0f;
float zScale = getFloat24(gstate.viewportz1) / 65535.0f;
float zOff = getFloat24(gstate.viewportz2) / 65535.0f;
float depthRangeMin = zOff - zScale;
float depthRangeMax = zOff + zScale;
glstate.depthRange.set(depthRangeMin, depthRangeMax);
Expand Down

0 comments on commit 09c99fc

Please sign in to comment.