glslstage: add brackets around pointer dereference referencing an array

While technically, i is always 0 and *vertex_sources[i++] is equivalant
to (*vertex_sources)[i++].  Be future-proof in the case of code
moves/changes/etc.

CID 1327406
This commit is contained in:
Matthew Waters 2015-10-16 02:57:19 +11:00 committed by Tim-Philipp Müller
parent 2b3a224dc0
commit 463e23bb47

View file

@ -419,7 +419,7 @@ _maybe_prepend_version (GstGLSLStage * stage, gchar ** shader_str,
i = 0;
if (add_header)
*vertex_sources[i++] = es2_version_header;
(*vertex_sources)[i++] = es2_version_header;
for (j = 0; j < stage->priv->n_strings; i++, j++)
(*vertex_sources)[i] = shader_str[j];