mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 15:28:39 +09:00
PR #2356 - Treat all GLSL versions >=450 as 450
Backport of https://bugzilla.mozilla.org/show_bug.cgi?id=1446548
This commit is contained in:
parent
0bcaa2ff90
commit
ef54fc458c
1 changed files with 7 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue