Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Meakk committed Nov 27, 2024
1 parent 3260ce0 commit 4918160
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/testing/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ f3d_test(NAME TestVolumeMag DATA vase_4comp.vti ARGS -vb)
f3d_test(NAME TestVolumeComp DATA vase_4comp.vti ARGS -vb --comp=3)
f3d_test(NAME TestVolumeDirect DATA vase_4comp.vti ARGS -vb --comp=-2)
f3d_test(NAME TestVolumeCells DATA waveletArrays.vti ARGS -vb --cells)
f3d_test(NAME TestVolumeColoringArray DATA waveletArrays.vti ARGS -vb --coloring-array=Result LONG_TIMEOUT THRESHOLD 0.07)
f3d_test(NAME TestVolumeColoringArray DATA waveletArrays.vti ARGS -vb --coloring-array=Result LONG_TIMEOUT)
f3d_test(NAME TestTextureNormal DATA WaterBottle.glb ARGS --texture-normal=${F3D_SOURCE_DIR}/testing/data/normal.png --normal-scale=0.1)
f3d_test(NAME TestTextureMaterial DATA WaterBottle.glb ARGS --texture-material=${F3D_SOURCE_DIR}/testing/data/red_mod.jpg --roughness=1 --metallic=1)
f3d_test(NAME TestTextureMaterialWithOptions DATA WaterBottle.glb ARGS --texture-material=${F3D_SOURCE_DIR}/testing/data/red_mod.jpg --roughness=0.5 --metallic=0.5)
Expand Down Expand Up @@ -805,7 +805,7 @@ f3d_test(NAME TestInteractionProgressReload DATA cow.vtp ARGS --progress NO_BASE

# For some reasons this animation test goes "too far" when run with sanitizer
if(F3D_SANITIZER STREQUAL "none")
f3d_test(NAME TestInteractionCycleAnimation DATA InterpolationTest.glb INTERACTION THRESHOLD 0.06) #WWWWWWWWWWW;Space;Space;
f3d_test(NAME TestInteractionCycleAnimation DATA InterpolationTest.glb INTERACTION) #WWWWWWWWWWW;Space;Space;
endif()
f3d_test(NAME TestInteractionCycleAnimationNoAnimation DATA cow.vtp INTERACTION NO_BASELINE) #W

Expand Down
4 changes: 4 additions & 0 deletions vtkext/private/module/vtkF3DImguiActor.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,17 @@ struct vtkF3DImguiActor::Internals

// Create VBO
this->VertexBuffer = vtkSmartPointer<vtkOpenGLBufferObject>::New();

// https://gitlab.kitware.com/vtk/vtk/-/merge_requests/10589
#if VTK_VERSION_NUMBER >= VTK_VERSION_CHECK(9, 3, 20231016)
this->VertexBuffer->SetUsage(vtkOpenGLBufferObject::StreamDraw);
#endif
this->VertexBuffer->GenerateBuffer(vtkOpenGLBufferObject::ArrayBuffer);

// Create IBO
this->IndexBuffer = vtkSmartPointer<vtkOpenGLBufferObject>::New();

// https://gitlab.kitware.com/vtk/vtk/-/merge_requests/10589
#if VTK_VERSION_NUMBER >= VTK_VERSION_CHECK(9, 3, 20231016)
this->IndexBuffer->SetUsage(vtkOpenGLBufferObject::StreamDraw);
#endif
Expand Down

0 comments on commit 4918160

Please sign in to comment.