Skip to content

Commit

Permalink
Fixed|Widgets: Random drawing glitches
Browse files Browse the repository at this point in the history
The dynamic vertex allocations must be cleared after each flush.
  • Loading branch information
skyjake committed Feb 19, 2017
1 parent 4d93184 commit 2dd2c31
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 23 deletions.
2 changes: 0 additions & 2 deletions doomsday/sdk/libappfw/include/de/framework/painter.h
Expand Up @@ -77,8 +77,6 @@ class LIBAPPFW_PUBLIC Painter

void flush();

void finish();

private:
DENG2_PRIVATE(d)
};
Expand Down
5 changes: 0 additions & 5 deletions doomsday/sdk/libappfw/include/de/widgets/labelwidget.h
Expand Up @@ -253,10 +253,6 @@ class LIBAPPFW_PUBLIC LabelWidget : public GuiWidget, public IAssetGroup
*/
void setAppearanceAnimation(AppearanceAnimation method, TimeDelta const &span = 0.0);

//void setShaderId(DotPath const &shaderId);

//GLProgram &shaderProgram();

/**
* Sets a custom shader used when rendering the widget.
*
Expand All @@ -266,7 +262,6 @@ class LIBAPPFW_PUBLIC LabelWidget : public GuiWidget, public IAssetGroup
void setCustomShader(GLProgram *program);

// Events.
//void viewResized() override;
void update() override;
void drawContent() override;

Expand Down
16 changes: 0 additions & 16 deletions doomsday/sdk/libappfw/src/painter.cpp
Expand Up @@ -142,16 +142,6 @@ void Painter::setSaturation(float saturation)
d->queue.setBufferSaturation(saturation);
}

/*GLDrawQueue &Painter::drawQueue()
{
return d->queue;
}
GLAtlasBuffer &Painter::vertexBuffer()
{
return d->vertexBuf;
}*/

void Painter::drawTriangleStrip(QVector<GuiVertex> &vertices)
{
DENG2_ASSERT(d->isReady());
Expand All @@ -164,12 +154,6 @@ void Painter::flush()
{
DENG2_ASSERT(d->isReady());
d->queue.flush();
}

void Painter::finish()
{
DENG2_ASSERT(d->isReady());
d->queue.finish();
d->vertexBuf.clear();
}

Expand Down

0 comments on commit 2dd2c31

Please sign in to comment.