mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-14 14:20:21 +00:00
gl: Fix text carets going missing on NVidia
Use the same logic for uploading the 'corner pixel' that we use for uploading glyphs, since that works. Fixes: #6348
This commit is contained in:
parent
761995ce3c
commit
c43294c837
@ -119,11 +119,7 @@ gsk_gl_glyph_library_init_atlas (GskGLTextureLibrary *self,
|
|||||||
|
|
||||||
memset (pixel_data, 255, sizeof pixel_data);
|
memset (pixel_data, 255, sizeof pixel_data);
|
||||||
|
|
||||||
if (!gdk_gl_context_has_bgra (gdk_gl_context_get_current ())
|
if (gdk_gl_context_get_use_es (gdk_gl_context_get_current ()))
|
||||||
#if G_BYTE_ORDER == G_BIG_ENDIAN
|
|
||||||
|| gdk_gl_context_get_use_es (gdk_gl_context_get_current ())
|
|
||||||
#endif
|
|
||||||
)
|
|
||||||
{
|
{
|
||||||
gl_format = GL_RGBA;
|
gl_format = GL_RGBA;
|
||||||
gl_type = GL_UNSIGNED_BYTE;
|
gl_type = GL_UNSIGNED_BYTE;
|
||||||
|
Loading…
Reference in New Issue
Block a user