Include the endpoint in the line we're drawing
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404196
This commit is contained in:
parent
78855cf981
commit
556c82f866
1 changed files with 5 additions and 0 deletions
|
@ -1128,6 +1128,11 @@ GL_RenderLine(SDL_Renderer * renderer, int x1, int y1, int x2, int y2)
|
|||
data->glVertex2f(0.5f + x2, 0.5f + y2);
|
||||
data->glEnd();
|
||||
|
||||
/* For some reason the second endpoint is skipped */
|
||||
data->glBegin(GL_POINTS);
|
||||
data->glVertex2f(0.5f + x2, 0.5f + y2);
|
||||
data->glEnd();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue