mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-02-21 14:41:39 +00:00
Regress fix https://github.com/hrydgard/ppsspp/issues/5769
This commit is contained in:
parent
f2bf8df3cd
commit
568b14f890
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user