diff --git a/src/gallium/frontends/dri/kopper.c b/src/gallium/frontends/dri/kopper.c index 170c949b851..1f20e879cbe 100644 --- a/src/gallium/frontends/dri/kopper.c +++ b/src/gallium/frontends/dri/kopper.c @@ -277,6 +277,9 @@ kopper_allocate_textures(struct dri_context *ctx, } } + drawable->old_w = width; + drawable->old_h = height; + memset(&templ, 0, sizeof(templ)); templ.target = screen->target; templ.width0 = width; @@ -338,9 +341,6 @@ kopper_allocate_textures(struct dri_context *ctx, drawable->textures[statts[i]]); } } - - drawable->old_w = width; - drawable->old_h = height; } static inline void