From 15ed4527a28e757ae2617905188ebf19f16cb0a1 Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Wed, 27 Feb 2019 09:14:11 -0500 Subject: 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 --- tools/gfx/flag-combiner.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/gfx/flag-combiner.cpp') 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); } -- cgit v1.2.3