st/dri: fix bug in allocate_textures
authorGeorge Sapountzis <gsapountzis@gmail.com>
Fri, 19 Mar 2010 00:38:10 +0000 (02:38 +0200)
committerChia-I Wu <olv@lunarg.com>
Sat, 20 Mar 2010 04:59:58 +0000 (12:59 +0800)
src/gallium/state_trackers/dri/dri1.c

index 41dba82d5286303fd92e0eddbcafe326eda08fea..240bc69efd5a6d7fed7dfb3a143406559f9ebf5c 100644 (file)
@@ -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;