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 <daniel.van.vugt@canonical.com>
This commit is contained in:
Daniel van Vugt 2023-03-17 15:27:14 +08:00
parent 141943eb76
commit 183d92e291
1 changed files with 1 additions and 1 deletions

View File

@ -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";