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>
|
<value type="float">4.0</value>
|
||||||
<float-property>/sim/rendering/shaders/urban</float-property>
|
<float-property>/sim/rendering/shaders/urban</float-property>
|
||||||
</less-equal>
|
</less-equal>
|
||||||
<and>
|
|
||||||
<or>
|
<or>
|
||||||
<less-equal>
|
<less-equal>
|
||||||
<value type="float">2.0</value>
|
<value type="float">2.0</value>
|
||||||
|
@ -66,7 +65,6 @@
|
||||||
<extension-supported>GL_ARB_shader_texture_lod</extension-supported>
|
<extension-supported>GL_ARB_shader_texture_lod</extension-supported>
|
||||||
</or>
|
</or>
|
||||||
</and>
|
</and>
|
||||||
</and>
|
|
||||||
</predicate>
|
</predicate>
|
||||||
<pass>
|
<pass>
|
||||||
<lighting>true</lighting>
|
<lighting>true</lighting>
|
||||||
|
@ -295,7 +293,6 @@
|
||||||
<value type="float">2.0</value>
|
<value type="float">2.0</value>
|
||||||
<float-property>/sim/rendering/shaders/quality-level</float-property>
|
<float-property>/sim/rendering/shaders/quality-level</float-property>
|
||||||
</less-equal>
|
</less-equal>
|
||||||
<and>
|
|
||||||
<or>
|
<or>
|
||||||
<less-equal>
|
<less-equal>
|
||||||
<value type="float">2.0</value>
|
<value type="float">2.0</value>
|
||||||
|
@ -308,11 +305,7 @@
|
||||||
<extension-supported>GL_ARB_fragment_shader</extension-supported>
|
<extension-supported>GL_ARB_fragment_shader</extension-supported>
|
||||||
</and>
|
</and>
|
||||||
</or>
|
</or>
|
||||||
<or>
|
<!-- quality level below 4.0 doesn't require GL_ATI_shader_texture_lod or GL_ARB_shader_texture_lod -->
|
||||||
<extension-supported>GL_ATI_shader_texture_lod</extension-supported>
|
|
||||||
<extension-supported>GL_ARB_shader_texture_lod</extension-supported>
|
|
||||||
</or>
|
|
||||||
</and>
|
|
||||||
</and>
|
</and>
|
||||||
</predicate>
|
</predicate>
|
||||||
<pass>
|
<pass>
|
||||||
|
|
Loading…
Reference in a new issue