st/dri: fix bug in make_current
authorGeorge Sapountzis <gsapountzis@gmail.com>
Fri, 19 Mar 2010 19:16:21 +0000 (19:16 +0000)
committerChia-I Wu <olv@lunarg.com>
Sat, 20 Mar 2010 04:59:58 +0000 (12:59 +0800)
src/gallium/state_trackers/dri/dri_context.c

index c1848b026cdbbb9d007d9f420091d2818ffc07c3..54568a8b2205f541fb9e6c9704fdebb2225f7315 100644 (file)
@@ -149,7 +149,7 @@ dri_make_current(__DRIcontext * cPriv,
       }
       if (ctx->rPriv != driReadPriv) {
         ctx->rPriv = driReadPriv;
-         draw->texture_stamp = driReadPriv->lastStamp - 1;
+         read->texture_stamp = driReadPriv->lastStamp - 1;
       }
 
       stapi->make_current(stapi, ctx->st, draw->stfb, read->stfb);