Skip to content

Commit

Permalink
Fixed|Client: Cleanup after refactoring
Browse files Browse the repository at this point in the history
Drawing the view border may now be attempted earlier than before.
  • Loading branch information
skyjake committed Oct 9, 2016
1 parent f91b2b4 commit eb8c869
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions doomsday/apps/client/src/render/r_draw.cpp
Expand Up @@ -217,8 +217,9 @@ void R_DrawViewBorder()
viewdata_t const *vd = &DD_Player(displayPlayer)->viewport();
DENG2_ASSERT(port != 0 && vd != 0);

if(vd->window.isNull()) return;
if(vd->window.size() >= port->geometry.size()) return;
if (!borderGraphicsNames[BG_BACKGROUND]) return;
if (vd->window.isNull()) return;
if (vd->window.size() >= port->geometry.size()) return;

DENG_ASSERT_IN_MAIN_THREAD();
DENG_ASSERT_GL_CONTEXT_ACTIVE();
Expand Down
2 changes: 1 addition & 1 deletion doomsday/apps/client/src/resource/bitmapfont.cpp
Expand Up @@ -348,7 +348,7 @@ void BitmapFont::glDeinit()

if(d->texGLName)
{
LIBGUI_GL.glDeleteTextures(1, (GLuint const *) &d->texGLName);
Deferred_glDeleteTextures(1, (GLuint const *) &d->texGLName);
}
d->texGLName = 0;
}
Expand Down

0 comments on commit eb8c869

Please sign in to comment.