From 6b05f711fdd1fb27248ad30c94f0c2d860e1e360 Mon Sep 17 00:00:00 2001 From: ocornut Date: Thu, 23 Apr 2026 22:06:42 +0200 Subject: [PATCH] Backends: WebGPU: build fix for WebGL/ES2. --- backends/imgui_impl_opengl3.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/backends/imgui_impl_opengl3.cpp b/backends/imgui_impl_opengl3.cpp index cf190f63d..c950c7a07 100644 --- a/backends/imgui_impl_opengl3.cpp +++ b/backends/imgui_impl_opengl3.cpp @@ -254,10 +254,8 @@ struct ImGui_ImplOpenGL3_Data bool HasClipOrigin; bool UseBufferSubData; bool UseTexParameterToSetSampler; - GLuint NextSampler; -#ifdef IMGUI_IMPL_OPENGL_MAY_HAVE_BIND_SAMPLER - GLuint TexSamplers[2]; // Linear, Nearest -#endif + GLuint NextSampler; // Used if !HasBindSampler && UseTexParameterToSetSampler. + GLuint TexSamplers[2]; // Used if IMGUI_IMPL_OPENGL_MAY_HAVE_BIND_SAMPLER && HasBindSimpler (0=linear, 1=nearest). ImVector TempBuffer;