History

more clean up

samcake committed 10 years ago

Commit b5aa5fc1 parent 846c5a73 files · +6 −12Browse files

Showing the changes to libraries/render-utils/src/FramebufferCache.cpp (1 of 3 files). Show all

Unified · Split

libraries/render-utils/src/FramebufferCache.cpp+2−1
@@ -247,7 +247,8 @@ gpu::TexturePointer FramebufferCache::getDepthPyramidTexture() { · 246 unmodified lines
247247 }
248248
249249 void FramebufferCache::setAmbientOcclusionResolutionLevel(int level) {
250− level = std::max(0, std::min(level, 4));
250+ const int MAX_AO_RESOLUTION_LEVEL = 4;
251+ level = std::max(0, std::min(level, MAX_AO_RESOLUTION_LEVEL));
251252 if (level != _AOResolutionLevel) {
252253 _AOResolutionLevel = level;
253254 resizeAmbientOcclusionBuffers();