diff options
author | Moonchild <moonchild@palemoon.org> | 2023-10-25 03:59:44 +0200 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2023-10-25 03:59:44 +0200 |
commit | 72f30730e790ad800bc8912463eb33f39cf9418b (patch) | |
tree | aea5622e647becf30d1e7b64572131819bc7aab6 /dom | |
parent | 782202963ef662aea5b51e182c4dcb3fd918c6d5 (diff) | |
parent | dd2fbc763ad2c5eaf3fdfaabfd96fbf7b48c473b (diff) | |
download | uxp-72f30730e790ad800bc8912463eb33f39cf9418b.tar.gz |
Merge branch 'master' of https://repo.palemoon.org/MoonchildProductions/UXP
Diffstat (limited to 'dom')
-rw-r--r-- | dom/canvas/WebGLShaderValidator.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/dom/canvas/WebGLShaderValidator.cpp b/dom/canvas/WebGLShaderValidator.cpp index bf2df82f71..7ea9f11a70 100644 --- a/dom/canvas/WebGLShaderValidator.cpp +++ b/dom/canvas/WebGLShaderValidator.cpp @@ -9,6 +9,7 @@ #include "angle/ShaderLang.h" #include "gfxPrefs.h" #include "GLContext.h" +#include "mozilla/gfx/Logging.h" #include "mozilla/Preferences.h" #include "MurmurHash3.h" #include "nsPrintfCString.h" @@ -135,9 +136,13 @@ ShaderOutput(gl::GLContext* gl) case 420: return SH_GLSL_420_CORE_OUTPUT; case 430: return SH_GLSL_430_CORE_OUTPUT; case 440: return SH_GLSL_440_CORE_OUTPUT; - case 450: return SH_GLSL_450_CORE_OUTPUT; default: - MOZ_ASSERT(false, "GFX: Unexpected GLSL version."); + if (version >= 450) { + // "OpenGL 4.6 is also guaranteed to support all previous versions of the + // OpenGL Shading Language back to version 1.10." + return SH_GLSL_450_CORE_OUTPUT; + } + gfxCriticalNote << "Unexpected GLSL version: " << version; } } |