mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 13:41:07 +00:00
glcontext: RGB32F is not renderable
I naively assumed the EXT_color_buffer_float and EXT_color_buffer_half_float extensions would mirror each other, but they do not. The float extension explicitly excludes RGB32F from the renderable formats.
This commit is contained in:
parent
b719f3bd60
commit
25f99f35f6
@ -1651,7 +1651,7 @@ gdk_gl_context_init_memory_flags (GdkGLContext *self)
|
||||
flags |= GDK_GL_FORMAT_FILTERABLE;
|
||||
priv->memory_flags[GDK_MEMORY_R32G32B32A32_FLOAT_PREMULTIPLIED] |= flags;
|
||||
priv->memory_flags[GDK_MEMORY_R32G32B32A32_FLOAT] |= flags;
|
||||
priv->memory_flags[GDK_MEMORY_R32G32B32_FLOAT] |= flags;
|
||||
priv->memory_flags[GDK_MEMORY_R32G32B32_FLOAT] |= flags & ~GDK_GL_FORMAT_RENDERABLE;
|
||||
priv->memory_flags[GDK_MEMORY_A32_FLOAT] |= flags;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user