Fix for UnloadMesh per issue #303
This commit is contained in:
parent
4c850b2472
commit
f8a694c149
1 changed files with 6 additions and 4 deletions
|
@ -7,8 +7,10 @@ package rl
|
|||
import "C"
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"image/color"
|
||||
"runtime"
|
||||
"slices"
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
|
@ -343,7 +345,7 @@ var goManagedMeshIDs []uint32 = make([]uint32, 0)
|
|||
func UploadMesh(mesh *Mesh, dynamic bool) {
|
||||
//check if mesh has already been uploaded to prevent duplication
|
||||
if mesh.VaoID != 0 {
|
||||
fmt.printf("VAO: [ID %i] Trying to re-load an already loaded mesh", mesh->vaoId)
|
||||
fmt.printf("VAO: [ID %i] Trying to re-load an already loaded mesh", mesh.VaoId)
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue