Commits

David Rogers committed be96952

Bug 555: Switch order of preferred languages in the RTSS to prefer GLSLES over Cg when available.

Comments (0)

Files changed (1)

Components/RTShaderSystem/src/OgreShaderGenerator.cpp

 	
 	HighLevelGpuProgramManager& hmgr = HighLevelGpuProgramManager::getSingleton();
 
-	if (hmgr.isLanguageSupported("cg"))
+	if (hmgr.isLanguageSupported("glsles"))
+	{
+		mShaderLanguage	= "glsles";
+	}
+	else if (hmgr.isLanguageSupported("cg"))
 	{
 		mShaderLanguage	= "cg";
 	}
 	{
 		mShaderLanguage	= "glsl";
 	}
-	else if (hmgr.isLanguageSupported("glsles"))
-	{
-		mShaderLanguage	= "glsles";
-	}
 	else if (hmgr.isLanguageSupported("hlsl"))
 	{
 		mShaderLanguage	= "hlsl";