Accept GL_TEXTURE_MAX_ANISOTROPY_EXT for samplers.
This usage is not explicitly specified in EXT_texture_filter_anisotropic,
but in practice all notable ES 3.0 implementations treat maximum anisotropy
as sampler state. Furthermore, it's already accepted as a valid sampler
parameter by ValidateSamplerObjectParameter in Context.cpp.
This avoids a crash when calling
glSamplerParameteri(sampler, GL_TEXTURE_MAX_ANISOTROPY_EXT, 1.f);
Bug: b/79951966
Change-Id: I4013f621781fc74a0fbfbf14ab326871fbb87b7c
Reviewed-on: https://swiftshader-review.googlesource.com/18908
Reviewed-by: Alexis Hétu <sugoi@google.com>
Tested-by: Krzysztof Kosiński <krzysio@google.com>
diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt
index 2f8dec2..81d1149 100644
--- a/CONTRIBUTORS.txt
+++ b/CONTRIBUTORS.txt
@@ -11,12 +11,12 @@
Google Inc.
Nicolas Capens <capn@google.com>
- Alexis Hétu <sugoi@google.com>
+ Alexis Hétu <sugoi@google.com>
Shannon Woods <shannonwoods@google.com>
Corentin Wallez <cwallez@google.com>
Greg Hartman <ghartman@google.com>
Ping-Hao Wu <pinghao@google.com>
- Maxime Grégoire <mgregoire@google.com>
+ Maxime Grégoire <mgregoire@google.com>
Veranika Liaukevich <veranika@google.com>
John Bauman <jbauman@google.com>
Keun Soo Yim <yim@google.com>
@@ -24,6 +24,7 @@
Philippe Hamel <hamelphi@google.com>
Daniel Toyama <kenjitoyama@google.com>
Meng-Lin Wu <marleymoo@google.com>
+ Krzysztof Kosiński <krzysio@google.com>
TransGaming Inc.
Nicolas Capens
@@ -31,4 +32,4 @@
Jim MacArthur
Daniel Koch
Luther Johnson
- Rob Stepinski
\ No newline at end of file
+ Rob Stepinski