Skip to content

Fixed function pipeline program crash #108

Description

@iProgramMC

Bug Report

What's the issue you encountered?

OpenGX crashes in _ogx_shader_draw_done if no shaders are uploaded.

Here is the function that causes this issue:
https://github.com/devkitPro/opengx/blob/master/src/shader.c#L1092

There is no check for if the current_program is zero like in other places.

How can the issue be reproduced?

Never use OpenGL shader APIs.

Environment?

Using Windows 11, with the msys2 shell, but I don't think this matters.

Additional context?

If I disable this function things still don't work because the screen turns gray (probably some kind of misuse of the library?!), but I'm not talking about the gray screen issue.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions