From d9ac208b282e47d9760927b79cdb2bd87554373f Mon Sep 17 00:00:00 2001 From: Nicolas Souedet Date: Mon, 16 Sep 2019 11:24:58 +0200 Subject: [PATCH] fixes: #12 - Volumes with large dimension fail to be visualized --- src/lib/object/sliceable.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/object/sliceable.cc b/src/lib/object/sliceable.cc index 273da057..d7059fc8 100644 --- a/src/lib/object/sliceable.cc +++ b/src/lib/object/sliceable.cc @@ -419,7 +419,7 @@ bool Sliceable::glMakeTexImage( const ViewState & state, unsigned w = xim.effectiveWidth, h = xim.effectiveHeight; const SliceViewState *st = state.sliceVS(); - xim.data = new char[ w * h * 4 ]; + xim.data = new char[ ((long long)w) * h * 4 ]; bool retcode = update2DTexture( xim, si.posbase, *st, tex );