Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2010-02-17 00:44:18 +0300
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2010-02-17 00:44:18 +0300
commit39ea873a8bc91a7fc4df7b1fa7a7a18239fddae1 (patch)
tree68a81953a98bc282e804c924b32781230ee74af1 /source/blender/freestyle/intern/application/AppCanvas.h
parentca908e21e215a87f0783fed47feed394ccdea4d6 (diff)
Fixed bugs in AppCanvas::readColorPixels() and
AppCanvas::readDepthPixels() that caused a crash when the aspect ratio was not 1:1.
Diffstat (limited to 'source/blender/freestyle/intern/application/AppCanvas.h')
-rwxr-xr-xsource/blender/freestyle/intern/application/AppCanvas.h18
1 files changed, 14 insertions, 4 deletions
diff --git a/source/blender/freestyle/intern/application/AppCanvas.h b/source/blender/freestyle/intern/application/AppCanvas.h
index 7678014d4a0..b45aafbaf33 100755
--- a/source/blender/freestyle/intern/application/AppCanvas.h
+++ b/source/blender/freestyle/intern/application/AppCanvas.h
@@ -48,11 +48,21 @@ public:
void setViewer(AppView *iViewer) ;
// soc
- void setPassDiffuse(float *p) {_pass_diffuse = p;}
- void setPassZ(float *p) {_pass_z = p;}
+ void setPassDiffuse(float *buf, int width, int height) {
+ _pass_diffuse.buf = buf;
+ _pass_diffuse.width = width;
+ _pass_diffuse.height = height;
+ }
+ void setPassZ(float *buf, int width, int height) {
+ _pass_z.buf = buf;
+ _pass_z.width = width;
+ _pass_z.height = height;
+ }
private:
- float *_pass_diffuse;
- float *_pass_z;
+ struct {
+ float *buf;
+ int width, height;
+ } _pass_diffuse, _pass_z;
};