Closed KoolenDasheppi closed 5 years ago
I went to the previous commit before you updated imgui and it worked fine. I'm assuming the new version of imgui broke it.
@kool601
Add X(void, glPolygonMode, GLenum face, GLenum mode)\
to gl_functions.inl
that may be all you need to do, but for me I had to change
glPolygonMode(GL_FRONT_AND_BACK, (GLenum)last_polygon_mode[0]);
in imgui_impl_opengl3.cpp
to either
glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);
(hackish solution) or to
glPolygonMode(GL_FRONT_AND_BACK, last_polygon_mode);
(better solution? not sure I'm not OpenGL expert) but also add
GLenum last_polygon_mode; glGetIntegerv(GL_POLYGON_MODE, (GLint *)&last_polygon_mode);
Also this is tested on Linux so I don't know if it's gonna work on Windows (it should).
Sorry about that. Submitted a quick fix and pushed!
Here's the log:
I installed VS2017 Community (and before I had the build tools but that didn't seem to work), and tried to run it in cmd.exe. Didn't work, said a bunch of commands were missing. Then I tried it with the developer console that comes with Visual Studio. Then it gave me those errors up there.