Urban shader doesn't need GL_ARB_shader_texture_lod for quality level below 4.0. If needed, the shader should be split to have different requirements between levels.
This commit is contained in:
parent
d530df428d
commit
6b6b5484c0
1 changed files with 29 additions and 36 deletions
|
@ -48,7 +48,6 @@
|
|||
<value type="float">4.0</value>
|
||||
<float-property>/sim/rendering/shaders/urban</float-property>
|
||||
</less-equal>
|
||||
<and>
|
||||
<or>
|
||||
<less-equal>
|
||||
<value type="float">2.0</value>
|
||||
|
@ -66,7 +65,6 @@
|
|||
<extension-supported>GL_ARB_shader_texture_lod</extension-supported>
|
||||
</or>
|
||||
</and>
|
||||
</and>
|
||||
</predicate>
|
||||
<pass>
|
||||
<lighting>true</lighting>
|
||||
|
@ -295,7 +293,6 @@
|
|||
<value type="float">2.0</value>
|
||||
<float-property>/sim/rendering/shaders/quality-level</float-property>
|
||||
</less-equal>
|
||||
<and>
|
||||
<or>
|
||||
<less-equal>
|
||||
<value type="float">2.0</value>
|
||||
|
@ -308,11 +305,7 @@
|
|||
<extension-supported>GL_ARB_fragment_shader</extension-supported>
|
||||
</and>
|
||||
</or>
|
||||
<or>
|
||||
<extension-supported>GL_ATI_shader_texture_lod</extension-supported>
|
||||
<extension-supported>GL_ARB_shader_texture_lod</extension-supported>
|
||||
</or>
|
||||
</and>
|
||||
<!-- quality level below 4.0 doesn't require GL_ATI_shader_texture_lod or GL_ARB_shader_texture_lod -->
|
||||
</and>
|
||||
</predicate>
|
||||
<pass>
|
||||
|
|
Loading…
Reference in a new issue