Qu0ll
05-09-2011, 08:06 AM
I am drawing a line without enabling line smoothing, then I enable line smoothing with:
glEnable(GL_LINE_SMOOTH);
glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
glHint(GL_LINE_SMOOTH_HINT, GL_NICEST);
and to my surprise the first line is smoothed as well (which is not what I want).
So why is this seemingly retrospective and how can I draw one line not smoothed and then another one with smoothing applied? I have tried glFlush() between drawing the lines but it didn't help.
glEnable(GL_LINE_SMOOTH);
glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
glHint(GL_LINE_SMOOTH_HINT, GL_NICEST);
and to my surprise the first line is smoothed as well (which is not what I want).
So why is this seemingly retrospective and how can I draw one line not smoothed and then another one with smoothing applied? I have tried glFlush() between drawing the lines but it didn't help.