summaryrefslogtreecommitdiff
path: root/gfx
diff options
context:
space:
mode:
authorBrian Smith <brian@dbsoft.org>2020-11-23 08:18:34 -0600
committerBrian Smith <brian@dbsoft.org>2020-11-23 08:18:34 -0600
commit72c6567e04012aa6e35b21e3c58488559e4f1e82 (patch)
tree7ab24da7fc998d7479896f77b4c2cdc135b082f6 /gfx
parent78f96681b6d9ba584015faf93799fa0ce6e143ee (diff)
downloaduxp-72c6567e04012aa6e35b21e3c58488559e4f1e82.tar.gz
Issue mcp-graveyard/UXP#1690 - Part 1: Fix MacOS version detection above 10.15.
Changes based on Mozilla bug 1616404 but supporting back to 10.7.
Diffstat (limited to 'gfx')
-rw-r--r--gfx/gl/GLContext.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gfx/gl/GLContext.cpp b/gfx/gl/GLContext.cpp
index 7ea22332af..e81bb980c7 100644
--- a/gfx/gl/GLContext.cpp
+++ b/gfx/gl/GLContext.cpp
@@ -1857,8 +1857,8 @@ GLContext::InitExtensions()
// textures with glCompressedTexSubImage2D. Works on Intel HD 4000
// and Intel HD 5000/Iris that I tested.
// Bug 1124996: Appears to be the same on OSX Yosemite (10.10)
- if (nsCocoaFeatures::OSXVersionMajor() == 10 &&
- nsCocoaFeatures::OSXVersionMinor() >= 9 &&
+ if (nsCocoaFeatures::macOSVersionMajor() == 10 &&
+ nsCocoaFeatures::macOSVersionMinor() >= 9 &&
Renderer() == GLRenderer::IntelHD3000)
{
MarkExtensionUnsupported(EXT_texture_compression_s3tc);