From ac73b00540f15aba098c0679db73242fe56a2d34 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 21 Apr 2018 19:37:55 +0200 Subject: [PATCH] Prevent nasal demons from appearing. --- standalone/src/imgui_impl_glfw_gl3.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/standalone/src/imgui_impl_glfw_gl3.cpp b/standalone/src/imgui_impl_glfw_gl3.cpp index 58893941..9e9804f4 100644 --- a/standalone/src/imgui_impl_glfw_gl3.cpp +++ b/standalone/src/imgui_impl_glfw_gl3.cpp @@ -132,9 +132,9 @@ void ImGui_ImplGlfwGL3_RenderDrawData(ImDrawData* draw_data) glEnableVertexAttribArray(g_AttribLocationPosition); glEnableVertexAttribArray(g_AttribLocationUV); glEnableVertexAttribArray(g_AttribLocationColor); - glVertexAttribPointer(g_AttribLocationPosition, 2, GL_FLOAT, GL_FALSE, sizeof(ImDrawVert), (GLvoid*)IM_OFFSETOF(ImDrawVert, pos)); - glVertexAttribPointer(g_AttribLocationUV, 2, GL_FLOAT, GL_FALSE, sizeof(ImDrawVert), (GLvoid*)IM_OFFSETOF(ImDrawVert, uv)); - glVertexAttribPointer(g_AttribLocationColor, 4, GL_UNSIGNED_BYTE, GL_TRUE, sizeof(ImDrawVert), (GLvoid*)IM_OFFSETOF(ImDrawVert, col)); + glVertexAttribPointer(g_AttribLocationPosition, 2, GL_FLOAT, GL_FALSE, sizeof(ImDrawVert), (GLvoid*)offsetof(ImDrawVert, pos)); + glVertexAttribPointer(g_AttribLocationUV, 2, GL_FLOAT, GL_FALSE, sizeof(ImDrawVert), (GLvoid*)offsetof(ImDrawVert, uv)); + glVertexAttribPointer(g_AttribLocationColor, 4, GL_UNSIGNED_BYTE, GL_TRUE, sizeof(ImDrawVert), (GLvoid*)offsetof(ImDrawVert, col)); // Draw for (int n = 0; n < draw_data->CmdListsCount; n++)