mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
[460/906] gstgleffects: Fix upper bound of an array iteration
10 is above NEEDED_TEXTURES (currently 5) and makes the code consistent with the rest of the usage in the file.
This commit is contained in:
parent
f9c64dfdea
commit
b9c68baddc
1 changed files with 1 additions and 1 deletions
|
@ -213,7 +213,7 @@ gst_gl_effects_reset_gl_resources (GstGLFilter * filter)
|
|||
GstGLEffects *effects = GST_GL_EFFECTS (filter);
|
||||
gint i;
|
||||
|
||||
for (i = 0; i < 10; i++) {
|
||||
for (i = 0; i < NEEDED_TEXTURES; i++) {
|
||||
glDeleteTextures (1, &effects->midtexture[i]);
|
||||
effects->midtexture[i] = 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue