From 183d92e291512a343e4f4d1b37819d09ee56078c Mon Sep 17 00:00:00 2001 From: Daniel van Vugt Date: Fri, 17 Mar 2023 15:27:14 +0800 Subject: [PATCH] clients/simple-dmabuf-feedback: Remove unsupported f suffixes NVIDIA is more pedantic than Mesa and correctly complains that `1.0f` is not valid syntax in the OpenGL ES Shading Language version 1.00. And we are indeed using SL version 1.00 by virtue of using an ES 2.0 context. So use the syntax compatible with the context we've created. Signed-off-by: Daniel van Vugt --- clients/simple-dmabuf-feedback.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clients/simple-dmabuf-feedback.c b/clients/simple-dmabuf-feedback.c index bc7778429..c2a1ac6c1 100644 --- a/clients/simple-dmabuf-feedback.c +++ b/clients/simple-dmabuf-feedback.c @@ -71,7 +71,7 @@ static const char *vert_shader_text = " // We need to render upside-down, because rendering through an\n" " // FBO causes the bottom of the image to be written to the top\n" " // pixel row of the buffer, y-flipping the image.\n" - " gl_Position = vec4(1.0, -1.0f, 1.0f, 1.0f) * pos;\n" + " gl_Position = vec4(1.0, -1.0, 1.0, 1.0) * pos;\n" " v_color = color;\n" "}\n";