From 2dd92e3eed4f4ffb833808261cf255e45b3414cf Mon Sep 17 00:00:00 2001 From: ocornut Date: Mon, 9 Mar 2015 13:08:27 +0000 Subject: [PATCH] Examples: Clang/Linux warning fixes. --- examples/opengl3_example/main.cpp | 2 +- examples/opengl_example/imgui_impl_glfw.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/opengl3_example/main.cpp b/examples/opengl3_example/main.cpp index 16d3a716..d773ec3d 100644 --- a/examples/opengl3_example/main.cpp +++ b/examples/opengl3_example/main.cpp @@ -1,7 +1,7 @@ // ImGui - standalone example application for Glfw + OpenGL 3, using programmable pipeline #include -#include "imgui_impl_glfw_GL3.h" +#include "imgui_impl_glfw_gl3.h" #include #include #include diff --git a/examples/opengl_example/imgui_impl_glfw.cpp b/examples/opengl_example/imgui_impl_glfw.cpp index 6bf07d8a..aa7de29b 100644 --- a/examples/opengl_example/imgui_impl_glfw.cpp +++ b/examples/opengl_example/imgui_impl_glfw.cpp @@ -189,7 +189,7 @@ bool ImGui_ImplGlfw_Init(GLFWwindow* window, bool install_callbacks) void ImGui_ImplGlfw_Shutdown() { - if (GLuint tex_id = (GLuint)ImGui::GetIO().Fonts->TexID) + if (GLuint tex_id = (GLuint)(intptr_t)ImGui::GetIO().Fonts->TexID) { glDeleteTextures(1, &tex_id); ImGui::GetIO().Fonts->TexID = 0;