From 7c9ef05c7c0e181faf3830accc678919ec9db7f7 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Mon, 23 Oct 2023 21:20:31 +0200 Subject: [PATCH] gdk: Make float32 report its true depth I have no idea how this is the only value that is wrong. --- gdk/gdkmemoryformat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdk/gdkmemoryformat.c b/gdk/gdkmemoryformat.c index ff42f23617..3b21734c14 100644 --- a/gdk/gdkmemoryformat.c +++ b/gdk/gdkmemoryformat.c @@ -511,7 +511,7 @@ static const GdkMemoryFormatDescription memory_formats[] = { GDK_MEMORY_ALPHA_PREMULTIPLIED, 16, G_ALIGNOF (float), - TRUE, + GDK_MEMORY_FLOAT32, { 0, 0, 3, 0 }, { GL_RGBA32F, GL_RGBA, GL_FLOAT, { GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA } }, r32g32b32a32_float_to_float, -- 2.30.2