6c01889e00
- appdate screenshot URL updated (by mailaender@opensuse.org) - Mozilla Thunderbird 91.0 * based on Mozilla's 91 ESR codebase * many new and changed features https://www.thunderbird.net/en-US/thunderbird/91.0/releasenotes/#whatsnew * Renamed "Add-ons" to "Add-ons and Themes" and "Options" to "Preferences" * Thunderbird now operates in multi-process (e10s) mode by default * New user interface for adding attachments * Enable redirect of messages * CardDAV address book support - Removed obsolete patches: * mozilla-bmo1463035.patch * mozilla-ppc-altivec_static_inline.patch * mozilla-pipewire-0-3.patch * mozilla-bmo1554971.patch - add mozilla-libavcodec58_91.patch - removed obsolete BigEndian ICU build workaround - updated build requirements - build using clang OBS-URL: https://build.opensuse.org/package/show/mozilla:Factory/MozillaThunderbird?expand=0&rev=600
36 lines
1.3 KiB
Diff
36 lines
1.3 KiB
Diff
# HG changeset patch
|
|
# Parent 3de59fe1b8708c01e134ce698c4232b8a854f617
|
|
Problem: webGL sites are displayed in the wrong color (usually blue-ish)
|
|
Solution: Problem is with skia once again. Output of webgl seems endian-correct, but skia only
|
|
knows how to deal with little endian.
|
|
So we swizzle the output of webgl after reading it from readpixels()
|
|
Note: This does not fix all webGL sites, but is a step in the right direction
|
|
|
|
diff --git a/gfx/gl/GLContext.h b/gfx/gl/GLContext.h
|
|
--- a/gfx/gl/GLContext.h
|
|
+++ b/gfx/gl/GLContext.h
|
|
@@ -1548,16 +1548,23 @@ class GLContext : public GenericAtomicRe
|
|
AFTER_GL_CALL;
|
|
}
|
|
|
|
void raw_fReadPixels(GLint x, GLint y, GLsizei width, GLsizei height,
|
|
GLenum format, GLenum type, GLvoid* pixels) {
|
|
BEFORE_GL_CALL;
|
|
mSymbols.fReadPixels(x, y, width, height, format, type, pixels);
|
|
OnSyncCall();
|
|
+#if MOZ_BIG_ENDIAN()
|
|
+ uint8_t* itr = (uint8_t*)pixels;
|
|
+ for (GLsizei i = 0; i < width * height; i++) {
|
|
+ NativeEndian::swapToLittleEndianInPlace((uint32_t*)itr, 1);
|
|
+ itr += 4;
|
|
+ }
|
|
+#endif
|
|
AFTER_GL_CALL;
|
|
mHeavyGLCallsSinceLastFlush = true;
|
|
}
|
|
|
|
void fReadPixels(GLint x, GLint y, GLsizei width, GLsizei height,
|
|
GLenum format, GLenum type, GLvoid* pixels);
|
|
|
|
public:
|