diff options
author | Erwin Coumans <blender@erwincoumans.com> | 2008-10-12 00:54:18 +0400 |
---|---|---|
committer | Erwin Coumans <blender@erwincoumans.com> | 2008-10-12 00:54:18 +0400 |
commit | ffa67424a914caf4d2c1194044c83c904c7ea52b (patch) | |
tree | d4a9e07f2a2ba5b7b290c6747ad4b28b2047ed20 | |
parent | 3cac11a3a2e61555c48c559f9caa61b1787e9ddb (diff) |
prevent crash in gpu_draw.c, so tilemode might not have GLSL/GPU features
/* for tiles, copy only part of image into buffer */
if (GTS.tilemode) {
return 0; //disabled for now, it causes crashes
See tracker issue here:
http://projects.blender.org/tracker/index.php?func=detail&aid=17819&group_id=9&atid=125
-rw-r--r-- | source/blender/gpu/intern/gpu_draw.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/gpu/intern/gpu_draw.c b/source/blender/gpu/intern/gpu_draw.c index 85a1a059b75..8fcf0457812 100644 --- a/source/blender/gpu/intern/gpu_draw.c +++ b/source/blender/gpu/intern/gpu_draw.c @@ -448,6 +448,9 @@ int GPU_verify_image(Image *ima, int tftile, int tfmode, int compare) /* for tiles, copy only part of image into buffer */ if (GTS.tilemode) { + return 0; //disabled for now, it causes crashes + //see http://projects.blender.org/tracker/index.php?func=detail&aid=17819&group_id=9&atid=125 + tilerect= MEM_mallocN(rectw*recth*sizeof(*tilerect), "tilerect"); for (y=0; y<recth; y++) { |