raylib: add missing fields to Mesh struct (#175)
Add missing veoId and vboId fields to the Mesh struct. This fixes some crashes when meshes are being manipulated on the Zig side, for example when genMesh* functions are used.
This commit is contained in:
parent
94570c4b60
commit
606d9bb9ba
2 changed files with 4 additions and 0 deletions
|
|
@ -1381,6 +1381,8 @@ pub const Mesh = extern struct {
|
|||
boneWeights: [*c]f32,
|
||||
boneMatrices: [*c]Matrix,
|
||||
boneCount: c_int,
|
||||
vaoId: c_int,
|
||||
vboId: [*c]c_int,
|
||||
|
||||
/// Draw a 3d mesh with material and transform
|
||||
pub fn draw(self: Mesh, material: Material, transform: Matrix) void {
|
||||
|
|
|
|||
|
|
@ -1381,6 +1381,8 @@ pub const Mesh = extern struct {
|
|||
boneWeights: [*c]f32,
|
||||
boneMatrices: [*c]Matrix,
|
||||
boneCount: c_int,
|
||||
vaoId: c_int,
|
||||
vboId: [*c]c_int,
|
||||
|
||||
/// Draw a 3d mesh with material and transform
|
||||
pub fn draw(self: Mesh, material: Material, transform: Matrix) void {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue