Closed hikari-no-yume closed 1 year ago
This is unfortunately a "bug" in how the GL.xml file specifies the functions and the fact that C will automatically convert values between types.
There is not much that can be done about this at the Rust layer
Yeah that's fair.
GLenum
is an unsigned integer type,c_uint
, but some GL functions that need GL enum values take aGLint
, and rustc complains about this. An example isglTexParameteri
:Having to write
as GLint
isn't the worst thing in the world, but it is a little annoying. I wonder if there could be a nice solution to make such cases work without casting?Obviously this is a very low-priority issue, especially since such cases are probably handled by higher-level libraries, and I don't expect anyone to fix it for me.