Skip to content

Commit c4f35d4

Browse files
committed
Fix compilation on old linux compilers
1 parent 09a0c34 commit c4f35d4

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

renderdoc/driver/gl/gl_shaderdebug.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,16 @@ RDOC_CONFIG(rdcstr, OpenGL_Debug_ShaderDebugDumpDirPath, "",
3838
RDOC_CONFIG(bool, OpenGL_Debug_ShaderDebugLogging, false,
3939
"Output verbose debug logging messages when debugging shaders.");
4040

41+
// needed for old linux compilers
42+
namespace std
43+
{
44+
template <>
45+
struct hash<ShaderBuiltin>
46+
{
47+
std::size_t operator()(const ShaderBuiltin &e) const { return size_t(e); }
48+
};
49+
}
50+
4151
#define OPENGL 1
4252
#include "data/glsl/glsl_ubos_cpp.h"
4353

0 commit comments

Comments
 (0)