Skip to content

Commit

Permalink
libgui: Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Sep 1, 2019
1 parent 32e5ba0 commit d15059e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions doomsday/libs/gui/src/graphics/glbuffer.cpp
Expand Up @@ -134,8 +134,8 @@ DENG2_PIMPL(GLBuffer)
GLuint idxName = 0;
dsize count = 0;
dsize idxCount = 0;
DrawRanges defaultRange; ///< All vertices.
GLenum prim = GL_POINTS;
GLenum prim = GL_POINTS;
DrawRanges defaultRange; ///< The default is all vertices.
AttribSpecs specs{nullptr, 0};

Impl(Public *i, Type type)
Expand Down Expand Up @@ -312,7 +312,9 @@ DENG2_PIMPL(GLBuffer)
for (int part = 0; part < 4; ++part)
{
if (enable)
{
setAttribPointer(index, spec, divisor, part);
}
else
{
GL.glDisableVertexAttribArray(index + part);
Expand All @@ -323,7 +325,9 @@ DENG2_PIMPL(GLBuffer)
else
{
if (enable)
{
setAttribPointer(index, spec, divisor);
}
else
{
GL.glDisableVertexAttribArray(index);
Expand Down

0 comments on commit d15059e

Please sign in to comment.