Fixed type.

This commit is contained in:
Branimir Karadžić 2014-06-01 13:26:57 -07:00
parent 97090e826c
commit b176ad42c1
2 changed files with 2 additions and 2 deletions

View file

@ -398,7 +398,7 @@ BGFX_C_API void bgfx_vertex_decl_end(bgfx_vertex_decl_t* _decl);
/** /**
* Pack vec4 into vertex stream format. * 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. * Unpack vec4 from vertex stream format.

View file

@ -2650,7 +2650,7 @@ BGFX_C_API void bgfx_vertex_decl_end(bgfx_vertex_decl_t* _decl)
decl->end(); 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::VertexDecl& decl = *(bgfx::VertexDecl*)_decl;
bgfx::vertexPack(_input, _inputNormalized, bgfx::Attrib::Enum(_attr), decl, _data, _index); bgfx::vertexPack(_input, _inputNormalized, bgfx::Attrib::Enum(_attr), decl, _data, _index);