[tbb-commits] [tor-browser] 210/311: Bug 1758736 - Fix debug assert in textureLinearUnpackedRG16. r=bradwerth a=dmeehan

gitolite role git at cupani.torproject.org
Tue Apr 26 15:30:10 UTC 2022


This is an automated email from the git hooks/post-receive script.

pierov pushed a commit to branch geckoview-99.0.1-11.0-1
in repository tor-browser.

commit 1886fcdf19142f6fdd7379a0ee53413c68d18372
Author: Lee Salzman <lsalzman at mozilla.com>
AuthorDate: Fri Mar 11 17:57:17 2022 +0000

    Bug 1758736 - Fix debug assert in textureLinearUnpackedRG16. r=bradwerth a=dmeehan
    
    Differential Revision: https://phabricator.services.mozilla.com/D140824
---
 gfx/wr/swgl/src/texture.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gfx/wr/swgl/src/texture.h b/gfx/wr/swgl/src/texture.h
index 3f7ed4a518e61..57d27ed05cc8d 100644
--- a/gfx/wr/swgl/src/texture.h
+++ b/gfx/wr/swgl/src/texture.h
@@ -734,7 +734,7 @@ vec4 textureLinearR16(S sampler, vec2 P) {
 // accommodate the sign bit, so only 15 bits of precision is left.
 template <typename S>
 static inline V8<int16_t> textureLinearUnpackedRG16(S sampler, ivec2 i) {
-  assert(sampler->format == TextureFormat::R16);
+  assert(sampler->format == TextureFormat::RG16);
 
   ivec2 frac = i;
   i >>= 7;

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the tbb-commits mailing list