Skip to content

Conversation

ilia-glushchenko
Copy link

According to the Khronos reference
https://www.khronos.org/registry/OpenGL-Refpages/gl4/html/glPolygonMode.xhtml.

glPolygonMode must have this signature:

void glPolygonMode( GLenum,  GLenum);

Which means that if I were to use something like https://github.com/cginternals/glbinding that has enum classes with the current example, I would not be able to build it.

type to the correct OpenGL3 API type.
@ocornut
Copy link
Owner

ocornut commented Feb 20, 2018

Thank you @ilia-glushchenko !
I have applied the same fix for the 4 variants on the OpenGL code and used C-style cast as we use everywhere in imgui codebase.

@ocornut ocornut closed this Feb 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants