diff --git a/gsk/gl/gskglglyphlibrary.c b/gsk/gl/gskglglyphlibrary.c index 2e6d4da7fb..a13e9a8245 100644 --- a/gsk/gl/gskglglyphlibrary.c +++ b/gsk/gl/gskglglyphlibrary.c @@ -280,7 +280,7 @@ gsk_gl_glyph_library_upload_glyph (GskGLGlyphLibrary *self, g_assert (texture_id > 0); - if (G_UNLIKELY (!gdk_gl_context_has_bgra (gdk_gl_context_get_current ()))) + if (gdk_gl_context_get_use_es (gdk_gl_context_get_current ())) { pixel_data = free_data = g_malloc (width * height * 4); gdk_memory_convert (pixel_data, width * 4, diff --git a/gsk/gl/gskgliconlibrary.c b/gsk/gl/gskgliconlibrary.c index 9040d8e1d9..8076cc3eff 100644 --- a/gsk/gl/gskgliconlibrary.c +++ b/gsk/gl/gskgliconlibrary.c @@ -111,11 +111,7 @@ gsk_gl_icon_library_add (GskGLIconLibrary *self, gdk_gl_context_push_debug_group_printf (gdk_gl_context_get_current (), "Uploading texture"); - if (!gdk_gl_context_has_bgra (gdk_gl_context_get_current ()) -#if G_BYTE_ORDER == G_BIG_ENDIAN - || gdk_gl_context_get_use_es (gdk_gl_context_get_current ()) -#endif - ) + if (gdk_gl_context_get_use_es (gdk_gl_context_get_current ())) { pixel_data = free_data = g_malloc (width * height * 4); gdk_memory_convert (pixel_data, width * 4,