Skip to content

Commit

Permalink
fixes: #12 - Volumes with large dimension fail to be visualized
Browse files Browse the repository at this point in the history
  • Loading branch information
nsouedet committed Sep 16, 2019
1 parent 965b3ed commit d9ac208
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/object/sliceable.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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 );

Expand Down

0 comments on commit d9ac208

Please sign in to comment.