fix line rendering mode

This commit is contained in:
Sam Gondelman 2019-01-27 00:02:06 -08:00 committed by GitHub
parent ac513df103
commit 4d83c7f6df
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -279,11 +279,11 @@ void GizmoEntityRenderer::doRender(RenderArgs* args) {
// Ticks
if (hasTickMarks) {
if (tickProperties.x > 0.0f && tickProperties.y != 0.0f) {
geometryCache->renderVertices(batch, gpu::LINE_STRIP, _majorTicksGeometryID);
geometryCache->renderVertices(batch, gpu::LINES, _majorTicksGeometryID);
}
if (tickProperties.z > 0.0f && tickProperties.w != 0.0f) {
geometryCache->renderVertices(batch, gpu::LINE_STRIP, _minorTicksGeometryID);
geometryCache->renderVertices(batch, gpu::LINES, _minorTicksGeometryID);
}
}
}
}
}