Skip to content

Commit

Permalink
Fix list of data types in the error message when using an invalid ver…
Browse files Browse the repository at this point in the history
…tex data type in the deprecated type+component count vertex format declaration.
  • Loading branch information
slime73 committed Sep 9, 2023
1 parent 48e23a0 commit 96040b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/graphics/wrap_Graphics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 96040b2

Please sign in to comment.