fix: Does WebGL use GLES2 after all?

This commit is contained in:
WerWolv
2026-01-10 14:15:56 +01:00
parent 5b01d23ed7
commit 6d0dfcfe2e

View File

@@ -483,7 +483,7 @@ static void ImGui_ImplOpenGL3_SetupRenderState(ImDrawData* draw_data, int fb_wid
glEnable(GL_BLEND);
glBlendEquation(GL_FUNC_ADD);
// IMHEX PATCH BEGIN
#if !defined(IMGUI_IMPL_OPENGL_ES3)
#if !defined(IMGUI_IMPL_OPENGL_ES2) && !defined(IMGUI_IMPL_OPENGL_ES3)
if (useFontShaders) {
glBlendFuncSeparate(GL_SRC1_COLOR, GL_ONE_MINUS_SRC1_COLOR,GL_ONE, GL_ONE_MINUS_SRC_ALPHA);
} else {