[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
@ -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…
x
Reference in New Issue
Block a user