Skip to content

gamma_correction.nim(51, 44) template/generic instantiation from here #3

@JDragan

Description

@JDragan

..\..\src\easygl.nim(397, 30) Error: type mismatch: got <type GLfloat> but expected 'GLenum = distinct uint32'

I tried to change to

when T is float32:
        discard vertexType.GL_FLOAT

it compiles, but fails with invalid enum as expected

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