-
Notifications
You must be signed in to change notification settings - Fork 204
Open
Description
This code
package main
import (
rl "github.com/gen2brain/raylib-go/raylib"
)
func main() {
defer rl.CloseWindow()
image := rl.ImageText("test", 12, rl.Blue)
texture := rl.LoadTextureFromImage(image)
rl.InitWindow(800, 600, "text")
for !rl.WindowShouldClose() {
rl.BeginDrawing()
rl.ClearBackground(rl.Black)
rl.DrawTexture(texture, 0, 0, rl.White)
rl.EndDrawing()
}
rl.UnloadTexture(texture)
}seems to be segfaulting on call to rl.LoadTextureFromImage regardless of which function was used to create an Image object. Tested only on linux, do not know about other platforms. CGo spits out too large logs, so they are in the attached file.
Metadata
Metadata
Assignees
Labels
No labels