diff options
author | Xiaohong Bao <bao@lindenlab.com> | 2010-09-07 13:27:49 -0600 |
---|---|---|
committer | Xiaohong Bao <bao@lindenlab.com> | 2010-09-07 13:27:49 -0600 |
commit | a0611b5a01a2f1eb336d4a69808b7b7f294cbc32 (patch) | |
tree | a19eb2d8e0a0f9e76a4c89a4b7dd37759ead9719 /indra/newview/llviewerwindow.cpp | |
parent | 16031c354ff37462acac4d2dd1effe0af9a8745a (diff) | |
parent | 497d35af488f25061ea6833539cd8e3c05e4a5b2 (diff) |
Automated merge with http://bitbucket.org/TheShining/viewer-development
Diffstat (limited to 'indra/newview/llviewerwindow.cpp')
-rw-r--r-- | indra/newview/llviewerwindow.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/indra/newview/llviewerwindow.cpp b/indra/newview/llviewerwindow.cpp index 556451e390..43d18c6d83 100644 --- a/indra/newview/llviewerwindow.cpp +++ b/indra/newview/llviewerwindow.cpp @@ -3911,7 +3911,14 @@ BOOL LLViewerWindow::rawSnapshot(LLImageRaw *raw, S32 image_width, S32 image_hei image_buffer_x = llfloor(snapshot_width*scale_factor) ; image_buffer_y = llfloor(snapshot_height *scale_factor) ; } - raw->resize(image_buffer_x, image_buffer_y, 3); + if(image_buffer_x > 0 && image_buffer_y > 0) + { + raw->resize(image_buffer_x, image_buffer_y, 3); + } + else + { + return FALSE ; + } if(raw->isBufferInvalid()) { return FALSE ; |