mirror of
https://github.com/yawut/SDL.git
synced 2026-06-24 13:30:54 -05:00
Include the endpoint in the line we're drawing
This commit is contained in:
parent
36c5366455
commit
abb42ffd01
|
|
@ -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…
Reference in New Issue
Block a user