Fix [#20297] Preview "Both" hides part of texture
authorMatt Ebb <matt@mke3.net>
Fri, 29 Jan 2010 05:14:10 +0000 (05:14 +0000)
committerMatt Ebb <matt@mke3.net>
Fri, 29 Jan 2010 05:14:10 +0000 (05:14 +0000)
source/blender/editors/render/render_preview.c

index 03fe772c09bc56b25f5bdad76df3cf2f74936bf3..1f1a0ff859dbac17afb8d1d79091a67e200ced9f 100644 (file)
@@ -483,10 +483,7 @@ static int ed_preview_draw_rect(ScrArea *sa, Scene *sce, ID *id, int split, int
                        newrect->xmax= MAX2(newrect->xmax, rect->xmin + rres.rectx + offx);
                        newrect->ymax= MAX2(newrect->ymax, rect->ymin + rres.recty);
 
-                       glPushMatrix();
-                       glTranslatef(offx, 0, 0);
-                       glaDrawPixelsSafe_to32(rect->xmin, rect->ymin, rres.rectx, rres.recty, rres.rectx, rres.rectf, gamma_correct);
-                       glPopMatrix();
+                       glaDrawPixelsSafe_to32(rect->xmin+offx, rect->ymin, rres.rectx, rres.recty, rres.rectx, rres.rectf, gamma_correct);
 
                        RE_ReleaseResultImage(re);
                        return 1;