Skip to content

src/shader/program.jl - early call to glUseProgram causes GL_INVALID_OPERATION #109

@karna48

Description

@karna48

I was trying to use NVIDIA Nsight Gaphics to debug my appliaction and I discovered that function Program calls glUseProgram right after glCreateProrgam which sets the error on GL_INVALID_OPERATION.

https://registry.khronos.org/OpenGL-Refpages/gl4/html/glUseProgram.xhtml
GL_INVALID_OPERATION is generated if program could not be made part of current state.

I think ti means glUseProgram can be only done with a fully linked program.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @karna48

        Issue actions

          src/shader/program.jl - early call to glUseProgram causes GL_INVALID_OPERATION · Issue #109 · JuliaGL/GLAbstraction.jl