diff --git a/src/gl/imgui_impl_opengl3.cpp b/src/gl/imgui_impl_opengl3.cpp index 0b7b831..c1729dd 100644 --- a/src/gl/imgui_impl_opengl3.cpp +++ b/src/gl/imgui_impl_opengl3.cpp @@ -503,7 +503,7 @@ void ImGui_ImplOpenGL3_NewFrame() static void ImGui_ImplOpenGL3_SetupRenderState(ImDrawData* draw_data, int fb_width, int fb_height, GLuint vertex_array_object) { // Setup render state: alpha-blending enabled, no face culling, no depth testing, scissor enabled, polygon fill - if (params.gl_bind_framebuffer >= 0 && g_GlVersion >= 300) + if (params.gl_bind_framebuffer >= 0 && (g_IsGLES || g_GlVersion >= 300)) glBindFramebuffer(GL_DRAW_FRAMEBUFFER, params.gl_bind_framebuffer); glEnable(GL_BLEND); glBlendEquation(GL_FUNC_ADD);