I maked OpenGL program by using MFC and in this program I used stencil buffer that the size is 8bit.
I want to raise the stencil buffer bit size to 16bit.
Is it possible?
I want to know whether it is possible to change the opengl stencil buffer bit size.
And how it does?
The answer is “it depends”.
It depends upon your hardware and drivers as to whether it supports 16-bit stencil buffers. Typically, AMD and nVidia only support 8-bit stencil buffers.
You select the number of stencil bits for your back buffer when you create the main window, you first query the device and then select the closest match (on Windows anyway) - via wglChoosePixelFormatARB