From 1d7dfc5f4774bb8ac428368cea8c8abeb63f7c64 Mon Sep 17 00:00:00 2001 From: Themaister Date: Sat, 1 Sep 2018 22:46:47 +0200 Subject: [PATCH] Fix glslang_format LUT. Was logging wrong format names. --- gfx/drivers_shader/glslang_util.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gfx/drivers_shader/glslang_util.cpp b/gfx/drivers_shader/glslang_util.cpp index 05a648ca9b..96b0b6026b 100644 --- a/gfx/drivers_shader/glslang_util.cpp +++ b/gfx/drivers_shader/glslang_util.cpp @@ -190,6 +190,8 @@ static string build_stage_source(const vector &lines, const char *stage) } static const char *glslang_formats[] = { + "UNKNOWN", + "R8_UNORM", "R8_UINT", "R8_SINT", @@ -223,8 +225,6 @@ static const char *glslang_formats[] = { "R32G32B32A32_UINT", "R32G32B32A32_SINT", "R32G32B32A32_SFLOAT", - - "UNKNOWN", }; const char *glslang_format_to_string(enum glslang_format fmt)