mirror of
https://github.com/wolfpld/tracy.git
synced 2026-08-13 08:40:04 +00:00
Tracy requires some textures to have repeat wrapping mode set. The ImGui implementation of samplers doesn't make it easy to achieve. Disalbe use of samplers and rely on texture flags, as done originally.
14 lines
640 B
Diff
14 lines
640 B
Diff
diff --git a/backends/imgui_impl_opengl3.cpp b/backends/imgui_impl_opengl3.cpp
|
|
index a9e32b7ac..2cdbc4812 100644
|
|
--- a/backends/imgui_impl_opengl3.cpp
|
|
+++ b/backends/imgui_impl_opengl3.cpp
|
|
@@ -1069,7 +1069,7 @@ bool ImGui_ImplOpenGL3_Init(const char* glsl_version)
|
|
bd->HasPolygonMode = (!bd->GlProfileIsES2 && !bd->GlProfileIsES3);
|
|
#endif
|
|
#ifdef IMGUI_IMPL_OPENGL_MAY_HAVE_BIND_SAMPLER
|
|
- bd->HasBindSampler = (bd->GlVersion >= 330 || bd->GlProfileIsES3);
|
|
+ //bd->HasBindSampler = (bd->GlVersion >= 330 || bd->GlProfileIsES3);
|
|
#endif
|
|
bd->HasClipOrigin = (bd->GlVersion >= 450);
|
|
#ifdef IMGUI_IMPL_OPENGL_HAS_EXTENSIONS
|