Open ekgame opened 1 day ago
I was trying to implement textures for Rayua, but I'm having trouble with the first step.
Reproduction steps:
feature/more-functions
uiua run examples/textures.ua
INFO: FILEIO: [./examples/cats.png] File loaded successfully INFO: IMAGE: Data loaded successfully (720x720 | R8G8B8 | 1 mipmaps) Segmentation fault (core dumped)
The issue seems to be related to the return type:
# lib.ua Texture ↚ "{unsigned int; int; int; int; int}" LoadTexture ← Rl {Texture "LoadTexture" "const char*"} {∘}
Changing the Texture type signature to "{unsigned int; int; int; int}" (missing last int) fails to open file and returns an array with nonsense data, but does not segmentation fault.
Texture
"{unsigned int; int; int; int}"
int
I was trying to implement textures for Rayua, but I'm having trouble with the first step.
Reproduction steps:
feature/more-functions
branch from https://github.com/ekgame/rayua/tree/feature/more-functionsuiua run examples/textures.ua
The issue seems to be related to the return type:
Changing the
Texture
type signature to"{unsigned int; int; int; int}"
(missing lastint
) fails to open file and returns an array with nonsense data, but does not segmentation fault.