diff --git a/include/bgfx.c99.h b/include/bgfx.c99.h index 9d17b909..b8e0cfc7 100644 --- a/include/bgfx.c99.h +++ b/include/bgfx.c99.h @@ -398,7 +398,7 @@ BGFX_C_API void bgfx_vertex_decl_end(bgfx_vertex_decl_t* _decl); /** * Pack vec4 into vertex stream format. */ -BGFX_C_API void bgfx_vertex_pack(const float _input[4], bool _inputNormalized, bgfx_attrib_t _attr, const bgfx_vertex_decl* _decl, void* _data, uint32_t _index); +BGFX_C_API void bgfx_vertex_pack(const float _input[4], bool _inputNormalized, bgfx_attrib_t _attr, const bgfx_vertex_decl_t* _decl, void* _data, uint32_t _index); /** * Unpack vec4 from vertex stream format. diff --git a/src/bgfx.cpp b/src/bgfx.cpp index ddea86da..0fd5ee57 100644 --- a/src/bgfx.cpp +++ b/src/bgfx.cpp @@ -2650,7 +2650,7 @@ BGFX_C_API void bgfx_vertex_decl_end(bgfx_vertex_decl_t* _decl) decl->end(); } -BGFX_C_API void bgfx_vertex_pack(const float _input[4], bool _inputNormalized, bgfx_attrib_t _attr, const bgfx_vertex_decl* _decl, void* _data, uint32_t _index) +BGFX_C_API void bgfx_vertex_pack(const float _input[4], bool _inputNormalized, bgfx_attrib_t _attr, const bgfx_vertex_decl_t* _decl, void* _data, uint32_t _index) { bgfx::VertexDecl& decl = *(bgfx::VertexDecl*)_decl; bgfx::vertexPack(_input, _inputNormalized, bgfx::Attrib::Enum(_attr), decl, _data, _index);