From 72aa38edfac504bf285dffc7edd2d263039730d6 Mon Sep 17 00:00:00 2001 From: Ilia Mirkin Date: Sat, 9 Sep 2017 18:27:30 -0400 Subject: [PATCH] Always apply flat qualifier to double inputs, same as int/uint Affects: KHR-GL45.enhanced_layouts.varying_structure_locations Components: OpenGL GitHub Issue: #53 (cherry picked from commit 878a6a5a8343b710ff7a7fcff0c219a25d0c4368) Change-Id: I84de1d9b42695034a7b2f60c3fc5a19213733085 --- external/openglcts/modules/gl/gl4cEnhancedLayoutsTests.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/external/openglcts/modules/gl/gl4cEnhancedLayoutsTests.cpp b/external/openglcts/modules/gl/gl4cEnhancedLayoutsTests.cpp index 23744eb..75e5adf 100644 --- a/external/openglcts/modules/gl/gl4cEnhancedLayoutsTests.cpp +++ b/external/openglcts/modules/gl/gl4cEnhancedLayoutsTests.cpp @@ -4023,12 +4023,13 @@ std::string Variable::Descriptor::GetDefinition(FLAVOUR flavour, STORAGE storage replaceToken("QUALIFIERS", position, m_qualifiers.c_str(), definition); } - // According to spec: integer or unsigned integer type must always be declared with flat qualifier + // According to spec: int, uint, and double type must always be declared with flat qualifier bool flat_qualifier = false; if (m_type != BUILTIN && m_interface != NULL) { if (m_interface->m_members[0].m_builtin.m_basic_type == Utils::Type::Int || - m_interface->m_members[0].m_builtin.m_basic_type == Utils::Type::Uint) + m_interface->m_members[0].m_builtin.m_basic_type == Utils::Type::Uint || + m_interface->m_members[0].m_builtin.m_basic_type == Utils::Type::Double) { flat_qualifier = true; } -- 2.7.4