softgpu: Cache minz/maxz in draw pixel state.

This commit is contained in:
Unknown W. Brackets committed 2022-01-15 13:03:10 -08:00
1 parent 0b3f096c01
commit f1ce2e7715
6 files changed
+48 -39

No files matched your search

+2
View File
@@ -199,6 +199,8 @@ void ComputePixelFuncID(PixelFuncID *id) {
if (id->applyFog) {
id->cached.fogColor = gstate.fogcolor & 0x00FFFFFF;
}
id->cached.minz = gstate.getDepthRangeMin();
id->cached.maxz = gstate.getDepthRangeMax();
id->cached.framebufStride = gstate.FrameBufStride();
id->cached.depthbufStride = gstate.DepthBufStride();
}