Fix config issues and revert previous fixes for semi-colon issues
This reverts commit41261d95a4. This reverts commit7c9accb653. Instead of trying to work around all of the potential semicolon issues in glslang, making it conform to Chromium's style, mark the code explicitly as non-chromium in the BUILD.gn, so chromium doesn't attempt to enforce its style rules on glslang. Fixes #1931
This commit is contained in:
parent
b03e4fc4e0
commit
1aeceaea7d
7 changed files with 30 additions and 19 deletions
|
|
@ -100,11 +100,11 @@ struct OpDecorations {
|
|||
spv::Decoration precision;
|
||||
|
||||
#ifdef GLSLANG_WEB
|
||||
void addNoContraction(spv::Builder&, spv::Id) const { }
|
||||
void addNonUniform(spv::Builder&, spv::Id) const { }
|
||||
void addNoContraction(spv::Builder&, spv::Id) const { };
|
||||
void addNonUniform(spv::Builder&, spv::Id) const { };
|
||||
#else
|
||||
void addNoContraction(spv::Builder& builder, spv::Id t) { builder.addDecoration(t, noContraction); }
|
||||
void addNonUniform(spv::Builder& builder, spv::Id t) { builder.addDecoration(t, nonUniform); }
|
||||
void addNoContraction(spv::Builder& builder, spv::Id t) { builder.addDecoration(t, noContraction); };
|
||||
void addNonUniform(spv::Builder& builder, spv::Id t) { builder.addDecoration(t, nonUniform); };
|
||||
protected:
|
||||
spv::Decoration noContraction;
|
||||
spv::Decoration nonUniform;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue