Re-enable viewport code. Let me know what it breaks by posting an issue.

This commit is contained in:
Henrik Rydgard 2013-01-05 11:50:12 +01:00
parent b705c4cd1b
commit 3e51224d86

View File

@ -181,7 +181,6 @@ void UpdateViewportAndProjection() {
if (throughmode) {
// No viewport transform here. Let's experiment with using region.
return;
glViewport((0 + regionX1) * renderWidthFactor, (0 - regionY1) * renderHeightFactor, (regionX2 - regionX1) * renderWidthFactor, (regionY2 - regionY1) * renderHeightFactor);
} else {
// These we can turn into a glViewport call, offset by offsetX and offsetY. Math after.
@ -203,8 +202,6 @@ void UpdateViewportAndProjection() {
gstate_c.vpWidth = vpXa * 2;
gstate_c.vpHeight = -vpYa * 2;
return;
float vpWidth = fabsf(gstate_c.vpWidth);
float vpHeight = fabsf(gstate_c.vpHeight);