aboutsummaryrefslogtreecommitdiffstats
path: root/gui
diff options
context:
space:
mode:
authorClifford Wolf <cliffordvienna@gmail.com>2018-07-25 11:07:51 +0000
committerClifford Wolf <cliffordvienna@gmail.com>2018-07-25 11:07:51 +0000
commitf3dab003e7b9a417a490f341f7e4dd28d7417caf (patch)
tree0755eff0f628d039bbc47548bed959f6352c5556 /gui
parent9bcdf2000901a49d96b3ccd16fcb154ff7abc7b3 (diff)
parent1e71621f6517faca01f1351ec60dd51288e14ec8 (diff)
downloadnextpnr-f3dab003e7b9a417a490f341f7e4dd28d7417caf.tar.gz
nextpnr-f3dab003e7b9a417a490f341f7e4dd28d7417caf.tar.bz2
nextpnr-f3dab003e7b9a417a490f341f7e4dd28d7417caf.zip
Merge branch 'bba' into 'master'
bbasm See merge request SymbioticEDA/nextpnr!18
Diffstat (limited to 'gui')
-rw-r--r--gui/fpgaviewwidget.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/gui/fpgaviewwidget.cc b/gui/fpgaviewwidget.cc
index 7ccb3445..15f37ce0 100644
--- a/gui/fpgaviewwidget.cc
+++ b/gui/fpgaviewwidget.cc
@@ -198,6 +198,8 @@ bool LineShader::compile(void)
void LineShader::draw(const LineShaderData &line, const QColor &color, float thickness, const QMatrix4x4 &projection)
{
auto gl = QOpenGLContext::currentContext()->functions();
+ if (line.vertices.size() == 0)
+ return;
vao_.bind();
program_->bind();