From 12c72d2893beef86cd0e40aab5a7ef0df603862a Mon Sep 17 00:00:00 2001 From: omar Date: Thu, 25 Oct 2018 21:32:29 +0200 Subject: [PATCH] Fixed OpenGL texture loading example in comment + Discourse link to root of discourse --- docs/README.md | 2 +- imgui.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/README.md b/docs/README.md index ae3a58ba8..50ae7819f 100644 --- a/docs/README.md +++ b/docs/README.md @@ -215,7 +215,7 @@ See the [Wiki](https://github.com/ocornut/imgui/wiki) for more references and [B Support Forums -------------- -If you have issues with: compiling, linking, adding fonts, running or displaying Dear ImGui, or wiring inputs: please post on the Discourse forum: https://discourse.dearimgui.org/c/getting-started. +If you have issues with: compiling, linking, adding fonts, running or displaying Dear ImGui, or wiring inputs: please post on the Discourse forum: https://discourse.dearimgui.org. For any other questions, bug reports, requests, feedback, you may post on https://github.com/ocornut/imgui/issues. diff --git a/imgui.cpp b/imgui.cpp index cd1c4ee97..2822e3e23 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -598,6 +598,8 @@ CODE GLuint my_opengl_texture; glGenTextures(1, &my_opengl_texture); glBindTexture(GL_TEXTURE_2D, my_opengl_texture); + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); glPixelStorei(GL_UNPACK_ROW_LENGTH, 0); glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, image_width, image_height, 0, GL_RGBA, GL_UNSIGNED_BYTE, image_data);