summaryrefslogtreecommitdiff
path: root/va/x11/va_dricommon.c
diff options
context:
space:
mode:
Diffstat (limited to 'va/x11/va_dricommon.c')
-rw-r--r--va/x11/va_dricommon.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/va/x11/va_dricommon.c b/va/x11/va_dricommon.c
index c0cbbcc..379e3d4 100644
--- a/va/x11/va_dricommon.c
+++ b/va/x11/va_dricommon.c
@@ -86,11 +86,12 @@ free_drawable(VADriverContextP ctx, struct dri_drawable* dri_drawable)
struct dri_state *dri_state = (struct dri_state *)ctx->drm_state;
int i = 0;
- while (i++ < DRAWABLE_HASH_SZ) {
+ while (i < DRAWABLE_HASH_SZ) {
if (dri_drawable == dri_state->drawable_hash[i]) {
dri_state->destroyDrawable(ctx, dri_drawable);
dri_state->drawable_hash[i] = NULL;
}
+ i++;
}
}