diff options
-rw-r--r-- | source/blender/freestyle/intern/application/AppCanvas.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/freestyle/intern/application/AppCanvas.cpp b/source/blender/freestyle/intern/application/AppCanvas.cpp index e1f300b3ce0..f621f45ff77 100644 --- a/source/blender/freestyle/intern/application/AppCanvas.cpp +++ b/source/blender/freestyle/intern/application/AppCanvas.cpp @@ -136,8 +136,8 @@ void AppCanvas::readColorPixels(int x, int y, int w, int h, RGBImage& oImage) co int ymin = border().getMin().y(); int xmax = border().getMax().x(); int ymax = border().getMax().y(); - int rectx = _pass_z.width; - int recty = _pass_z.height; + int rectx = _pass_diffuse.width; + int recty = _pass_diffuse.height; float xfac = ((float)rectx) / ((float)(xmax - xmin)); float yfac = ((float)recty) / ((float)(ymax - ymin)); #if 0 |