-
Notifications
You must be signed in to change notification settings - Fork 45
Open
Description
hi, i have encountered a problem :
i write the following code the close antialias effect:
GL::Context& gl = window.GetContext(32, 24, 8, 0);
and 0 represent antialias is closed (antialias = 0)
// Choose final pixel format
const int pixelAttribs[] =
{
WGL_DRAW_TO_WINDOW_ARB, GL_TRUE,
WGL_SUPPORT_OPENGL_ARB, GL_TRUE,
WGL_DOUBLE_BUFFER_ARB, GL_TRUE,
WGL_PIXEL_TYPE_ARB, WGL_TYPE_RGBA_ARB,
WGL_COLOR_BITS_ARB, color,
WGL_DEPTH_BITS_ARB, depth,
WGL_STENCIL_BITS_ARB, stencil,
//following two line should work but do nothing
WGL_SAMPLE_BUFFERS_ARB, antialias > 1 ? GL_TRUE : GL_FALSE,
WGL_SAMPLES_ARB, antialias > 1 ? antialias : 0,
0
};
but i still got the blured triangle edge
anyway to solve this?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels

