From 96040b2b2ab883087d1c8adbab60967143f844e8 Mon Sep 17 00:00:00 2001 From: Sasha Szpakowski Date: Sat, 9 Sep 2023 13:22:45 -0300 Subject: [PATCH] Fix list of data types in the error message when using an invalid vertex data type in the deprecated type+component count vertex format declaration. --- src/modules/graphics/wrap_Graphics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/graphics/wrap_Graphics.cpp b/src/modules/graphics/wrap_Graphics.cpp index 097c0534d..32c26821a 100644 --- a/src/modules/graphics/wrap_Graphics.cpp +++ b/src/modules/graphics/wrap_Graphics.cpp @@ -1912,7 +1912,7 @@ static Mesh *newCustomMesh(lua_State *L) } if (decl.format == DATAFORMAT_MAX_ENUM) - luax_enumerror(L, "vertex data format", getConstants(decl.format), tname); + luax_enumerror(L, "vertex data type", {"float", "byte", "unorm8", "unorm16"}, tname); lua_pop(L, 3);