Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
JDragan opened this issue Jul 24, 2019 · 0 comments
Open

Comments

@JDragan
Copy link

JDragan commented Jul 24, 2019

..\..\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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant