mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-30 02:58:24 +00:00
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:
parent
9ad6872b5b
commit
9d92326fe5
1 changed files with 1 additions and 1 deletions
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue