Skip to content

_gl.UseProgram shouldn't be used when setting uniforms #95

Description

@Av3boy

The renderer should call _gl.UseProgram once before rendering instead of calling it once per uniform.

    public void SetInt(string name, int data)
    {
        _gl.UseProgram(Handle);
        TrySetUniform(name, data, _gl.Uniform1);
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions