diff --git a/panda/src/display/frameBufferProperties.cxx b/panda/src/display/frameBufferProperties.cxx index b1d9f206eb..1228d133e3 100644 --- a/panda/src/display/frameBufferProperties.cxx +++ b/panda/src/display/frameBufferProperties.cxx @@ -132,7 +132,7 @@ get_default() { default_props.set_alpha_bits(alpha_bits); } if (stencil_bits > 0) { - default_props.set_depth_bits(stencil_bits); + default_props.set_stencil_bits(stencil_bits); } if (multisamples > 0) { default_props.set_multisamples(multisamples);