Use TraceLog instead of printf

This commit is contained in:
Milan Nikolic 2023-11-12 16:10:50 +01:00
parent 5a62d0591a
commit cca4bb4659
No known key found for this signature in database
GPG key ID: 9229D0EAA3AA4E75

View file

@ -7,7 +7,6 @@ package rl
import "C"
import (
"fmt"
"image/color"
"runtime"
"slices"
@ -375,7 +374,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("WARNING: VAO: [ID %d] Trying to re-load an already loaded mesh\n", mesh.VaoID)
TraceLog(LogWarning, "VAO: [ID %d] Trying to re-load an already loaded mesh", mesh.VaoID)
return
}