-
-
Notifications
You must be signed in to change notification settings - Fork 25
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
Cannot pass GLRepeat to glTexParameteri without manually casting to cint before #88
Comments
I just found that a similar case happens with this here let format = GLrgb
glTexImage2D(GLTexture2D, 0, format.GLint, # Notice this should be GLenum, but proc expects GLint
tex.png.width.GLsizei, tex.png.height.GLsizei, 0, format, # But works correctly here
GLUnsignedByte, tex.pix.addr) proc glTexImage2D*(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, `type`: GLenum, pixels: pointer): void {.stdcall, importc.}
glTexImage2D*: proc(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, `type`: GLenum, pixels: pointer): void {.stdcall.} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Failure to compile, when writing:
Please provide the steps to reproduce and if possible a minimal demo of the problem
As above
What is the expected behaviour?
Being able to pass
GLRepeat
toglTexParameteri
, without having to manually cast it to cintPlease tell us about your environment
Other information
(e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, docs.gl, documentation etc)
Not sure what else is needed. I think the case is fairly clear with that code, but let me know if I'm missing something important.
The text was updated successfully, but these errors were encountered: