sdl stencil buffer
- by noddy
I am trying to use the stencil buffer for rendering reflection and am working with SDL and OpenGL.
When I give the command SDL_GL_SetAttribute(SDL_GL_STENCIL_SIZE,8),I get a return value of 0 indicating success,but when I try to get the size allocated using SDL_GL_GetAtribute( SDL_GL_STENCIL_SIZE,&i),I get a value of 0 for my stencil buffer due to which I am not getting the desired rendering.
Can someone help me to correct my mistake?
Is there some other initialization also required?
Thanks