if triangles are drawn, outlines are disabled

This commit is contained in:
?
2019-09-12 22:38:42 +02:00
committed by Zeno Rogue
parent 53bc4c0251
commit 8d83959229
2 changed files with 1 additions and 4 deletions
+1 -1
View File
@@ -641,7 +641,7 @@ void dqi_poly::gldraw() {
}
}
if(outline) {
if(outline && !(flags & POLY_TRIANGLES)) {
glhr::color2(outline);
glhr::set_depthtest(model_needs_depth() && prio < PPR::SUPERLINE);
glDrawArrays(GL_LINE_STRIP, offset, cnt);