Skip to content

Create the stencil buffer automatically on SDL #662

@FloatingBanana

Description

@FloatingBanana

Summary

After a lot of research, I found that SDL doesn't create the stencil buffer by default. It took me a while to find that I need to call Silk.NET.Windowing.Sdl.SdlWindowing.GetExistingApi(window).GLSetAttribute(Silk.NET.SDL.GLattr.GLStencilSize, 8) before window.Run() to make the stencil work.

I think it would save a lot of people time if Silk made that automatically when creating the window. It shouldn't be a problem since GLFW already creates the stencil buffer by default.

Comments

If you don't like the idea of creating it by default, it could also be when the user sets the PreferredStencilBufferBits on the WindowOptions object.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions