Skip to content

Commit

Permalink
Improve const correctness
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisThrasher committed Oct 18, 2024
1 parent 06d8e03 commit da61664
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/SFML/Window/DRM/DRMContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,12 +174,7 @@ DrmFb* drmFbGetFromBo(gbm_bo& bo)
modifiers[static_cast<std::size_t>(i)] = modifiers[0];
}

std::uint32_t flags = 0;
if (modifiers[0])
{
flags = DRM_MODE_FB_MODIFIERS;
}

const std::uint32_t flags = modifiers[0] ? DRM_MODE_FB_MODIFIERS : 0;
int result = drmModeAddFB2WithModifiers(drmFd,
width,
height,
Expand Down

0 comments on commit da61664

Please sign in to comment.