From 775dc6bcc5f5c23319bb92315140c154a79fe6f8 Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Thu, 6 Feb 2014 13:17:29 +0000 Subject: chasing elusive video bank issue --- rotord/src/cvimage.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'rotord/src/cvimage.h') diff --git a/rotord/src/cvimage.h b/rotord/src/cvimage.h index 1210744..bc9c13d 100644 --- a/rotord/src/cvimage.h +++ b/rotord/src/cvimage.h @@ -130,7 +130,8 @@ namespace Rotor { return true; }; bool setup(int _w,int _h){ //set up with internal data - if (_w==0||_h==0) { + if (_w==0||_h==0||(_w*_h*3)>10000000) { + //some kind of elusive thing that shows up only in non debug builds std::cerr<<"Error! cvimage: request to set up image at "<<_w<<"x"<<_h<