diff options
author | wolfbeast <mcwerewolf@gmail.com> | 2018-07-11 23:29:50 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-07-11 23:31:02 +0200 |
commit | 70dd5e7c66b1fe3f82e5b4db2406050baba15f05 (patch) | |
tree | 3f012200ef3c934f33db1a4ef2b790fae3141860 /gfx/angle/src/third_party | |
parent | 3b7ffb477eec078c7036c92c6a51bb5de6de4f28 (diff) | |
parent | 8481fa25d246f1968d0a254ee3c6cdd82c60781a (diff) | |
download | UXP-70dd5e7c66b1fe3f82e5b4db2406050baba15f05.tar UXP-70dd5e7c66b1fe3f82e5b4db2406050baba15f05.tar.gz UXP-70dd5e7c66b1fe3f82e5b4db2406050baba15f05.tar.lz UXP-70dd5e7c66b1fe3f82e5b4db2406050baba15f05.tar.xz UXP-70dd5e7c66b1fe3f82e5b4db2406050baba15f05.zip |
Merge branch 'ANGLE-rollback'
This resolves #624
Note: Cherry-picked some fixes on top of the ANGLE version that we want to keep.
Diffstat (limited to 'gfx/angle/src/third_party')
-rwxr-xr-x | gfx/angle/src/third_party/compiler/ArrayBoundsClamper.cpp | 8 | ||||
-rwxr-xr-x | gfx/angle/src/third_party/compiler/ArrayBoundsClamper.h | 10 |
2 files changed, 3 insertions, 15 deletions
diff --git a/gfx/angle/src/third_party/compiler/ArrayBoundsClamper.cpp b/gfx/angle/src/third_party/compiler/ArrayBoundsClamper.cpp index aadb87553..fa6c8b8d7 100755 --- a/gfx/angle/src/third_party/compiler/ArrayBoundsClamper.cpp +++ b/gfx/angle/src/third_party/compiler/ArrayBoundsClamper.cpp @@ -38,11 +38,7 @@ const char* kIntClampBegin = "// BEGIN: Generated code for array bounds clamping const char* kIntClampEnd = "// END: Generated code for array bounds clamping\n\n"; const char* kIntClampDefinition = "int webgl_int_clamp(int value, int minValue, int maxValue) { return ((value < minValue) ? minValue : ((value > maxValue) ? maxValue : value)); }\n\n"; -namespace sh -{ - -namespace -{ +namespace { class ArrayBoundsClamperMarker : public TIntermTraverser { public: @@ -109,5 +105,3 @@ void ArrayBoundsClamper::OutputClampingFunctionDefinition(TInfoSinkBase& out) co } out << kIntClampBegin << kIntClampDefinition << kIntClampEnd; } - -} // namespace sh diff --git a/gfx/angle/src/third_party/compiler/ArrayBoundsClamper.h b/gfx/angle/src/third_party/compiler/ArrayBoundsClamper.h index a4c407f76..27917e6ee 100755 --- a/gfx/angle/src/third_party/compiler/ArrayBoundsClamper.h +++ b/gfx/angle/src/third_party/compiler/ArrayBoundsClamper.h @@ -29,12 +29,8 @@ #include "compiler/translator/InfoSink.h" #include "compiler/translator/IntermNode.h" -namespace sh -{ - -class ArrayBoundsClamper -{ - public: +class ArrayBoundsClamper { +public: ArrayBoundsClamper(); // Must be set before compiling any shaders to ensure consistency @@ -61,6 +57,4 @@ private: bool mArrayBoundsClampDefinitionNeeded; }; -} // namespace sh - #endif // THIRD_PARTY_COMPILER_ARRAYBOUNDSCLAMPER_H_ |