Skip to content

Commit

Permalink
talipot-ogl/OpenGlConfigManager: Set maximum samples for MSAA to 8
Browse files Browse the repository at this point in the history
  • Loading branch information
anlambert committed Jan 8, 2025
1 parent bffc8f3 commit c4970ad
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions library/talipot-ogl/src/OpenGlConfigManager.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
*
* Copyright (C) 2019-2024 The Talipot developers
* Copyright (C) 2019-2025 The Talipot developers
*
* Talipot is a fork of Tulip, created by David Auber
* and the Tulip development Team from LaBRI, University of Bordeaux
Expand Down Expand Up @@ -185,8 +185,9 @@ int OpenGlConfigManager::maxNumberOfSamples() {

if (maxSamples < 0) {
glGetIntegerv(GL_MAX_SAMPLES, &maxSamples);
maxSamples = std::min(maxSamples, 8);
}

return maxSamples / 4;
return maxSamples;
}
}

0 comments on commit c4970ad

Please sign in to comment.