Skip to content

Commit 6369505

Browse files
committed
Fix big bugs
1 parent 2736e08 commit 6369505

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

DVRViewPlugin/res/shaders/FullDataSampling.comp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,11 @@ void main()
129129

130130
// Update brick counters in x-first order.
131131
bx++;
132-
if (bx > int(atlasLayout.x))
132+
if (bx >= int(atlasLayout.x))
133133
{
134134
bx = 0;
135135
by++;
136-
if (by > int(atlasLayout.y))
136+
if (by >= int(atlasLayout.y))
137137
{
138138
by = 0;
139139
bz++;

DVRViewPlugin/src/VolumeRenderer.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -927,9 +927,6 @@ void VolumeRenderer::getGPUFullDataModeBatches(std::vector<float>& frontfacesDat
927927
{
928928
for (int idx = batchIndex; idx < width * height; idx += numBatches)
929929
{
930-
// Skip pixel if it does not hit the volume.
931-
if (frontfacesData[idx * 3] == 0.0f)
932-
continue;
933930

934931
// Get positions from the textures.
935932
mv::Vector3f frontPos(

0 commit comments

Comments
 (0)