/* Test case illustrating bug 9951 with GL_LINE_SMOOTH and small glLineWidth */ #include static void display( void ) { glClear( GL_COLOR_BUFFER_BIT ); glBlendFunc( GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA ); glEnable( GL_BLEND ); glEnable( GL_LINE_SMOOTH ); glLineWidth( 1 ); glBegin( GL_LINE_LOOP ); glVertex2f( 0, 0 ); glVertex2f( 1, 0 ); glVertex2f( 0.5, 1 ); glEnd(); glFlush(); } extern int main( int argc, char *argv[] ) { glutInit( &argc, argv ); glutCreateWindow( "Line smooth demo" ); glutDisplayFunc( display ); glutMainLoop(); return 1; }