Skip to content

LoadTextureFromImage consistently segfaults on Linux #528

@littlelinuxoid

Description

@littlelinuxoid

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.

segfault.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions