Skip to content

Commit

Permalink
Fix line width being ignored on d3d9 driver
Browse files Browse the repository at this point in the history
  • Loading branch information
edo9300 committed Jul 9, 2021
1 parent a4313e3 commit 04eae6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/Irrlicht/CD3D9Driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2952,7 +2952,7 @@ void CD3D9Driver::draw3DShapeW(const core::vector3df* vertices,
if(vertexCount < 2)
return;

if(!line || pattern == 0xffff) {
if(!line || (pattern == 0xffff && width == 0.0f)) {
if(pattern == 0xffff) {
for(u32 i = 0; i < (vertexCount - 1); i++) {
draw3DLine(vertices[i], vertices[i + 1], color);
Expand Down

0 comments on commit 04eae6b

Please sign in to comment.