diff options
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_shader_gen.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_gen.h b/src/video_core/renderer_opengl/gl_shader_gen.h index 4729ce0fc..2c636b7f3 100644 --- a/src/video_core/renderer_opengl/gl_shader_gen.h +++ b/src/video_core/renderer_opengl/gl_shader_gen.h @@ -12,7 +12,7 @@ #include "common/common_types.h" #include "common/hash.h" -namespace GLShader { +namespace OpenGL::GLShader { constexpr size_t MAX_PROGRAM_CODE_LENGTH{0x1000}; @@ -191,20 +191,20 @@ ProgramResult GenerateVertexShader(const ShaderSetup& setup, const MaxwellVSConf */ ProgramResult GenerateFragmentShader(const ShaderSetup& setup, const MaxwellFSConfig& config); -} // namespace GLShader +} // namespace OpenGL::GLShader namespace std { template <> -struct hash<GLShader::MaxwellVSConfig> { - size_t operator()(const GLShader::MaxwellVSConfig& k) const { +struct hash<OpenGL::GLShader::MaxwellVSConfig> { + size_t operator()(const OpenGL::GLShader::MaxwellVSConfig& k) const { return k.Hash(); } }; template <> -struct hash<GLShader::MaxwellFSConfig> { - size_t operator()(const GLShader::MaxwellFSConfig& k) const { +struct hash<OpenGL::GLShader::MaxwellFSConfig> { + size_t operator()(const OpenGL::GLShader::MaxwellFSConfig& k) const { return k.Hash(); } }; |