mirror of https://github.com/YosysHQ/nextpnr.git
Fix for zero length case
This commit is contained in:
parent
5e58a329e6
commit
6b8b067b1a
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue