qml/gl: fix array definition

Some implementations require the [N] to suffixed to the variable name.

Error message example: 'syntax error: Array size must appear after
variable name'

Follow up with https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5123
of https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5119

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5137>
This commit is contained in:
Matthew Waters 2023-08-02 21:17:26 +10:00
parent f3ce30a55a
commit ea2a44cb97

View file

@ -234,7 +234,7 @@ vertexShaderForFormat(GstVideoFormat v_format)
"uniform sampler2D " UNIFORM_TRIPLANAR_PLANE2 ";\n"
#define uniform_swizzle \
"uniform int[4] " UNIFORM_SWIZZLE_COMPONENTS_NAME ";\n"
"uniform int " UNIFORM_SWIZZLE_COMPONENTS_NAME "[4];\n"
#define uniform_opacity \
"uniform float " UNIFORM_OPACITY_NAME ";\n"
#define uniform_yuv_to_rgb_color_matrix \