diff options
author | FernandoS27 <fsahmkow27@gmail.com> | 2018-10-28 02:09:26 +0200 |
---|---|---|
committer | FernandoS27 <fsahmkow27@gmail.com> | 2018-10-28 02:09:26 +0200 |
commit | d8d557df86139ea0011fee0665d76e740681f7c0 (patch) | |
tree | b1b1ab38cbaead09de2e986d65aaeb9fcb15ec76 /src/video_core/renderer_opengl/gl_shader_gen.cpp | |
parent | Merge pull request #1596 from FearlessTobi/port-4367 (diff) | |
download | yuzu-d8d557df86139ea0011fee0665d76e740681f7c0.tar yuzu-d8d557df86139ea0011fee0665d76e740681f7c0.tar.gz yuzu-d8d557df86139ea0011fee0665d76e740681f7c0.tar.bz2 yuzu-d8d557df86139ea0011fee0665d76e740681f7c0.tar.lz yuzu-d8d557df86139ea0011fee0665d76e740681f7c0.tar.xz yuzu-d8d557df86139ea0011fee0665d76e740681f7c0.tar.zst yuzu-d8d557df86139ea0011fee0665d76e740681f7c0.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_shader_gen.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_gen.cpp b/src/video_core/renderer_opengl/gl_shader_gen.cpp index dfb562706..08dd8dc6c 100644 --- a/src/video_core/renderer_opengl/gl_shader_gen.cpp +++ b/src/video_core/renderer_opengl/gl_shader_gen.cpp @@ -15,7 +15,8 @@ static constexpr u32 PROGRAM_OFFSET{10}; ProgramResult GenerateVertexShader(const ShaderSetup& setup) { std::string out = "#version 430 core\n"; - out += "#extension GL_ARB_separate_shader_objects : enable\n\n"; + out += "#extension GL_ARB_separate_shader_objects : enable\n"; + out += "#extension GL_ARB_gpu_shader5 : enable\n\n"; out += Decompiler::GetCommonDeclarations(); out += R"( @@ -83,7 +84,8 @@ void main() { ProgramResult GenerateGeometryShader(const ShaderSetup& setup) { std::string out = "#version 430 core\n"; - out += "#extension GL_ARB_separate_shader_objects : enable\n\n"; + out += "#extension GL_ARB_separate_shader_objects : enable\n"; + out += "#extension GL_ARB_gpu_shader5 : enable\n\n"; out += Decompiler::GetCommonDeclarations(); out += "bool exec_geometry();\n"; @@ -117,7 +119,8 @@ void main() { ProgramResult GenerateFragmentShader(const ShaderSetup& setup) { std::string out = "#version 430 core\n"; - out += "#extension GL_ARB_separate_shader_objects : enable\n\n"; + out += "#extension GL_ARB_separate_shader_objects : enable\n"; + out += "#extension GL_ARB_gpu_shader5 : enable\n\n"; out += Decompiler::GetCommonDeclarations(); out += "bool exec_fragment();\n"; |