mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-08 08:48:39 +09:00
No issue - Fix some line endings in WebGLShaderValidator.cpp
This commit is contained in:
parent
9f7f1d457f
commit
173637496c
1 changed files with 18 additions and 18 deletions
|
|
@ -33,14 +33,14 @@ static int
|
|||
ChooseValidatorCompileOptions(const ShBuiltInResources& resources,
|
||||
const mozilla::gl::GLContext* gl)
|
||||
{
|
||||
int options = SH_VARIABLES |
|
||||
SH_ENFORCE_PACKING_RESTRICTIONS |
|
||||
int options = SH_VARIABLES |
|
||||
SH_ENFORCE_PACKING_RESTRICTIONS |
|
||||
SH_INIT_VARYINGS_WITHOUT_STATIC_USE |
|
||||
SH_OBJECT_CODE |
|
||||
SH_INIT_GL_POSITION;
|
||||
|
||||
if (resources.MaxExpressionComplexity > 0) {
|
||||
options |= SH_LIMIT_EXPRESSION_COMPLEXITY;
|
||||
SH_OBJECT_CODE |
|
||||
SH_INIT_GL_POSITION;
|
||||
|
||||
if (resources.MaxExpressionComplexity > 0) {
|
||||
options |= SH_LIMIT_EXPRESSION_COMPLEXITY;
|
||||
}
|
||||
// Sampler arrays indexed with non-constant expressions are forbidden in
|
||||
// GLSL 1.30 and later.
|
||||
|
|
@ -51,17 +51,17 @@ ChooseValidatorCompileOptions(const ShBuiltInResources& resources,
|
|||
// Needed for driver bug detection
|
||||
options |= SH_EMULATE_BUILT_IN_FUNCTIONS;
|
||||
|
||||
if (gfxPrefs::WebGLAllANGLEOptions()) {
|
||||
return options |
|
||||
SH_VALIDATE_LOOP_INDEXING |
|
||||
SH_UNROLL_FOR_LOOP_WITH_INTEGER_INDEX |
|
||||
SH_UNROLL_FOR_LOOP_WITH_SAMPLER_ARRAY_INDEX |
|
||||
SH_CLAMP_INDIRECT_ARRAY_BOUNDS |
|
||||
SH_UNFOLD_SHORT_CIRCUIT |
|
||||
SH_SCALARIZE_VEC_AND_MAT_CONSTRUCTOR_ARGS |
|
||||
SH_INIT_OUTPUT_VARIABLES |
|
||||
SH_REGENERATE_STRUCT_NAMES;
|
||||
}
|
||||
if (gfxPrefs::WebGLAllANGLEOptions()) {
|
||||
return options |
|
||||
SH_VALIDATE_LOOP_INDEXING |
|
||||
SH_UNROLL_FOR_LOOP_WITH_INTEGER_INDEX |
|
||||
SH_UNROLL_FOR_LOOP_WITH_SAMPLER_ARRAY_INDEX |
|
||||
SH_CLAMP_INDIRECT_ARRAY_BOUNDS |
|
||||
SH_UNFOLD_SHORT_CIRCUIT |
|
||||
SH_SCALARIZE_VEC_AND_MAT_CONSTRUCTOR_ARGS |
|
||||
SH_INIT_OUTPUT_VARIABLES |
|
||||
SH_REGENERATE_STRUCT_NAMES;
|
||||
}
|
||||
|
||||
#ifndef XP_MACOSX
|
||||
// We want to do this everywhere, but to do this on Mac, we need
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue