Skip to content

ktxview.cpp wrongly pointing the uniform variable #51

@Logickin-Lambda

Description

@Logickin-Lambda

Learning OpenGL and going through the texture part of the book, and I seems to find a bug in the ktxview example which I initially only getting a black screen.

Change the location of the uniform to 1 as shown seem to bring back the example to life:

glUniform1f(1, (float) (sin(t) * 16 + 16));

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

    Issue actions