Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed May 1, 2017
1 parent b50039a commit a4c80f7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions doomsday/apps/client/src/gl/dgl_common.cpp
Expand Up @@ -489,9 +489,9 @@ DENG_EXTERN_C void DGL_SetScissor(RectRaw const *rect)
// has been set to cover the game widget area, so we can set the scissor relative
// to it.

auto norm = GuiWidget::normalizedRect(Rectanglei(rect->origin.x, rect->origin.y,
rect->size.width, rect->size.height),
Rectanglei::fromSize(game.rule().recti().size()));
auto const norm = GuiWidget::normalizedRect(Rectanglei(rect->origin.x, rect->origin.y,
rect->size.width, rect->size.height),
Rectanglei::fromSize(game.rule().recti().size()));

GLState::current().setNormalizedScissor(norm);
}
Expand Down
2 changes: 1 addition & 1 deletion doomsday/apps/client/src/gl/dgl_draw.cpp
Expand Up @@ -322,7 +322,7 @@ struct DGLDrawState
gl->uAlphaLimit = (glState.alphaTest()? glState.alphaLimit() : 0.f);
DGL_FogParams(gl->uFogRange, gl->uFogColor);

GLState::current().apply();
glState.apply();

gl->shader.beginUse();
{
Expand Down

0 comments on commit a4c80f7

Please sign in to comment.