Skip to content

Crash when drawing null storage buffers #123

@NoelFB

Description

@NoelFB

If you create a storage buffer but don't upload anything to it, and then try to draw with it, the program will crash. This is because the SDL_GPU buffer isn't actually created until you call Upload at least once. Fixes could either be to create the buffer immediately, or skip binding it if it hasn't been uploaded to. Ultimately just need to never pass SDL_GPU a nullptr.

This may also apply to Uniform Buffers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions