Skip to content

Commit

Permalink
cppcheck warning fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
robertosfield committed Nov 18, 2024
1 parent ac880ea commit 52d3262
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/vsg/app/RecordTraversal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -440,9 +440,9 @@ void RecordTraversal::apply(const CoordinateFrame& cf)
{
GPU_INSTRUMENTATION_L2_NCO(instrumentation, *getCommandBuffer(), "CoordinateFrame", COLOR_RECORD_L2, &cf);

View* parentView = _viewDependentState ? _viewDependentState->view : nullptr;
Camera* camera = parentView ? parentView->camera : nullptr;
ViewMatrix* viewMatrix = camera ? camera->viewMatrix : nullptr;
const View* parentView = _viewDependentState ? _viewDependentState->view : nullptr;
const Camera* camera = parentView ? parentView->camera : nullptr;
const ViewMatrix* viewMatrix = camera ? camera->viewMatrix : nullptr;

if (viewMatrix)
{
Expand Down

0 comments on commit 52d3262

Please sign in to comment.