Here is the version information of OpenGL I am using
OpenGL version: 3.1.0 - Build 8.15.10.2559
OpenGL vendor: Intel
OpenGL renderer: Intel® HD Graphics Family
The following code in my display callback is:
glClear(GL_COLOR_BUFFER_BIT);
glColor3f(1.0f, 1.0f, 1.0f);
glBegin(GL_POINTS);
for(int r = 1; r < 250; ++r)
{
glVertex2i(2, r);
}
glEnd();
glColor3f(1.0f, 0.0f, 0.0f);
glBegin(GL_LINES);
glVertex2i(2, 1);
glVertex2i(2, 249);
glEnd();
This code should draw one line on top of the other but it renders the red line to the left of the white line. Can anyone explain this? Thanks.