From: George Sapountzis Date: Fri, 19 Mar 2010 00:38:10 +0000 (+0200) Subject: st/dri: fix bug in allocate_textures X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=92827cd4511fabcaeb8abfdd11122e04502d5944;p=mesa.git st/dri: fix bug in allocate_textures --- diff --git a/src/gallium/state_trackers/dri/dri1.c b/src/gallium/state_trackers/dri/dri1.c index 41dba82d528..240bc69efd5 100644 --- a/src/gallium/state_trackers/dri/dri1.c +++ b/src/gallium/state_trackers/dri/dri1.c @@ -451,7 +451,7 @@ dri1_allocate_textures(struct dri_drawable *drawable, break; } - if (templ.format != PIPE_FORMAT_NONE) { + if (format != PIPE_FORMAT_NONE) { templ.format = format; templ.tex_usage = tex_usage;