Skip to content

Commit f4fa65f

Browse files
committed
Add algorithm include to fix building on MSVC2019
The errors fixed are; src\osg\Texture.cpp(416): error C2039: 'max': is not a member of 'std' src\osg\Texture.cpp(416): error C3861: 'max': identifier not found
1 parent 69cfece commit f4fa65f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/osg/Texture.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
#include <OpenThreads/ScopedLock>
2727
#include <OpenThreads/Mutex>
2828

29+
#include <algorithm>
30+
2931
#ifndef GL_TEXTURE_WRAP_R
3032
#define GL_TEXTURE_WRAP_R 0x8072
3133
#endif

0 commit comments

Comments
 (0)