Skip to content

Commit

Permalink
Fixed|MSVC|Debug: Build failure
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Mar 5, 2017
1 parent 702b72f commit 1683e66
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
5 changes: 4 additions & 1 deletion doomsday/sdk/libgui/src/graphics/glbuffer.cpp
Expand Up @@ -24,6 +24,10 @@

namespace de {

#ifdef DENG2_DEBUG
extern int GLDrawQueue_queuedElems;
#endif

using namespace internal;
using namespace gl;

Expand Down Expand Up @@ -402,7 +406,6 @@ void GLBuffer::draw(DrawRanges const *ranges) const
++drawCounter;

#ifdef DENG2_DEBUG
extern int GLDrawQueue_queuedElems;
DENG2_ASSERT(GLDrawQueue_queuedElems == 0);
#endif

Expand Down
1 change: 1 addition & 0 deletions doomsday/sdk/libgui/src/graphics/gldrawqueue.cpp
Expand Up @@ -27,6 +27,7 @@
namespace de {

#ifdef DENG2_DEBUG
extern int GLDrawQueue_queuedElems;
int GLDrawQueue_queuedElems = 0;
#endif

Expand Down
5 changes: 4 additions & 1 deletion doomsday/sdk/libgui/src/graphics/glstate.cpp
Expand Up @@ -28,6 +28,10 @@

namespace de {

#ifdef DENG2_DEBUG
extern int GLDrawQueue_queuedElems;
#endif

namespace internal
{
enum Property {
Expand Down Expand Up @@ -648,7 +652,6 @@ void GLState::apply() const
LIBGUI_ASSERT_GL_OK();

#ifdef DENG2_DEBUG
extern int GLDrawQueue_queuedElems;
DENG2_ASSERT(GLDrawQueue_queuedElems == 0);
#endif

Expand Down

0 comments on commit 1683e66

Please sign in to comment.