[OpenGL] Bind framebuffer for all GL ES versions

pull/517/head
jackun 3 years ago
parent e62d6e3337
commit 0f6ead57d7
No known key found for this signature in database
GPG Key ID: 119DB3F1D05A9ED3

@ -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);

Loading…
Cancel
Save