diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2019-02-27 09:14:11 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-02-27 09:14:11 -0500 |
| commit | 15ed4527a28e757ae2617905188ebf19f16cb0a1 (patch) | |
| tree | f270b0f8cc760232ca2555ea6790e9ee80a11fdc /tools/gfx/flag-combiner.cpp | |
| parent | d9b73266ab46c9b4ba3b0d25d369e30143ac398f (diff) | |
Hotfix/device check review (#862)
* Fix typo on return type.
* * Inverted order of FlagCombiner (to make more 'nested for' like)
* On Dx12 just use D3D_FEATURE_LEVEL_11_0
* Fix typo on dll name
Diffstat (limited to 'tools/gfx/flag-combiner.cpp')
| -rw-r--r-- | tools/gfx/flag-combiner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/gfx/flag-combiner.cpp b/tools/gfx/flag-combiner.cpp index 04617368a..5ea577f11 100644 --- a/tools/gfx/flag-combiner.cpp +++ b/tools/gfx/flag-combiner.cpp @@ -38,7 +38,7 @@ uint32_t FlagCombiner::getCombination(int index) const uint32_t combination = 0; uint32_t bit = 1; - for (int i = 0; i < m_numChangingBits; ++i, bit += bit) + for (int i = m_numChangingBits - 1; i >= 0; --i, bit += bit) { combination |= ((bit & index) ? m_changingBits[i] : 0); } |
