Skip to content

Commit

Permalink
Fixed|GLState|libgui: Setting scissor in an arbitrary viewport
Browse files Browse the repository at this point in the history
The viewport coordinates were not taken into account when setting
a normalized scissor.
  • Loading branch information
skyjake committed Jul 17, 2016
1 parent 6da29f0 commit 84ef8f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doomsday/sdk/libgui/src/graphics/glstate.cpp
Expand Up @@ -526,7 +526,7 @@ GLState &GLState::setNormalizedScissor(Rectanglef const &normScissorRect)
normScissorRect.top() * vp.height()),
Vector2i(std::ceil(normScissorRect.right() * vp.width()),
std::ceil(normScissorRect.bottom() * vp.height())));
return setScissor(scis);
return setScissor(scis.moved(vp.topLeft.toVector2i()));
}

GLState &GLState::clearScissor()
Expand Down

0 comments on commit 84ef8f8

Please sign in to comment.