mirror of
https://github.com/minetest/irrlicht.git
synced 2024-12-25 02:00:30 +01:00
Fix line drawing: Explicitly draw both first & last pixel (#110)
This commit is contained in:
parent
57705d57cf
commit
e46ab74859
@ -1860,7 +1860,9 @@ void COpenGLDriver::draw2DLine(const core::position2d<s32>& start,
|
||||
|
||||
glDrawElements(GL_LINES, 2, GL_UNSIGNED_SHORT, Quad2DIndices);
|
||||
|
||||
// Draw non-drawn last pixel (search for "diamond exit rule")
|
||||
// Draw sometimes non-drawn first & last pixel (search for "diamond exit rule")
|
||||
// HACK this messes with alpha blending
|
||||
glDrawArrays(GL_POINTS, 0, 1);
|
||||
glDrawArrays(GL_POINTS, 1, 1);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user