diff options
author | bunnei <bunneidev@gmail.com> | 2015-11-26 04:33:24 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2015-11-26 04:33:24 +0100 |
commit | f008dfbaca376c7b52b4c79edd0e5b8a302cfa3f (patch) | |
tree | 79ae175c9c92eb477f34cbe1c1e72ee6ad6085e5 /src/video_core/renderer_opengl/gl_shader_gen.cpp | |
parent | Merge pull request #1253 from kemenaran/avoid-explicit-uniform-location (diff) | |
download | yuzu-f008dfbaca376c7b52b4c79edd0e5b8a302cfa3f.tar yuzu-f008dfbaca376c7b52b4c79edd0e5b8a302cfa3f.tar.gz yuzu-f008dfbaca376c7b52b4c79edd0e5b8a302cfa3f.tar.bz2 yuzu-f008dfbaca376c7b52b4c79edd0e5b8a302cfa3f.tar.lz yuzu-f008dfbaca376c7b52b4c79edd0e5b8a302cfa3f.tar.xz yuzu-f008dfbaca376c7b52b4c79edd0e5b8a302cfa3f.tar.zst yuzu-f008dfbaca376c7b52b4c79edd0e5b8a302cfa3f.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_shader_gen.cpp')
-rw-r--r-- | src/video_core/renderer_opengl/gl_shader_gen.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_gen.cpp b/src/video_core/renderer_opengl/gl_shader_gen.cpp index 0f781805c..5268340cf 100644 --- a/src/video_core/renderer_opengl/gl_shader_gen.cpp +++ b/src/video_core/renderer_opengl/gl_shader_gen.cpp @@ -320,7 +320,7 @@ static void WriteTevStage(std::string& out, const PicaShaderConfig& config, unsi std::string GenerateFragmentShader(const PicaShaderConfig& config) { std::string out = R"( -#version 330 +#version 330 core #define NUM_TEV_STAGES 6 in vec4 primary_color; @@ -362,7 +362,7 @@ layout (std140) uniform shader_data { } std::string GenerateVertexShader() { - std::string out = "#version 330\n"; + std::string out = "#version 330 core\n"; out += "layout(location = " + std::to_string((int)ATTRIBUTE_POSITION) + ") in vec4 vert_position;\n"; out += "layout(location = " + std::to_string((int)ATTRIBUTE_COLOR) + ") in vec4 vert_color;\n"; out += "layout(location = " + std::to_string((int)ATTRIBUTE_TEXCOORD0) + ") in vec2 vert_texcoord0;\n"; |