Skip to content

Commit

Permalink
Terrain: really reduce requirements to GLSL120
Browse files Browse the repository at this point in the history
fixes "flat" terrain on GL rendersystem with drivers only exposing 3.0
compatibility profile, hence GLSL130
  • Loading branch information
paroj committed Oct 23, 2018
1 parent 7818a85 commit dc54109
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Components/Terrain/src/OgreTerrainMaterialGeneratorA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,7 @@ namespace Ogre
{
mShaderLanguage = "hlsl";
}
else if (hmgr.isLanguageSupported("glsl")
&& Root::getSingleton().getRenderSystem()->getNativeShadingLanguageVersion() >= 150)
else if (hmgr.isLanguageSupported("glsl"))
{
mShaderLanguage = "glsl";
}
Expand Down

0 comments on commit dc54109

Please sign in to comment.