Added 8 bits of stencil to defaults.
This commit is contained in:
parent
937f137246
commit
d00c194f4a
11
src/window.c
11
src/window.c
@ -85,11 +85,12 @@ void _glfwSetDefaultWindowHints(void)
|
|||||||
_glfwLibrary.hints.resizable = GL_TRUE;
|
_glfwLibrary.hints.resizable = GL_TRUE;
|
||||||
_glfwLibrary.hints.visible = GL_TRUE;
|
_glfwLibrary.hints.visible = GL_TRUE;
|
||||||
|
|
||||||
// The default is 24 bits of depth, 8 bits of color
|
// The default is 24 bits of color, 24 bits of depth and 8 bits of stencil
|
||||||
_glfwLibrary.hints.depthBits = 24;
|
_glfwLibrary.hints.redBits = 8;
|
||||||
_glfwLibrary.hints.redBits = 8;
|
_glfwLibrary.hints.greenBits = 8;
|
||||||
_glfwLibrary.hints.greenBits = 8;
|
_glfwLibrary.hints.blueBits = 8;
|
||||||
_glfwLibrary.hints.blueBits = 8;
|
_glfwLibrary.hints.depthBits = 24;
|
||||||
|
_glfwLibrary.hints.stencilBits = 8;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user