[OpenGL] Bind framebuffer for all GL ES versions
@@ -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);
