[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:
Edward Hervey 2010-09-08 20:38:07 +02:00 committed by Matthew Waters
parent f9c64dfdea
commit b9c68baddc

View file

@ -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;
}