Hello!
It's most likely I'm doing something wrong...
Let's say I'm trying to load image:
public var fish1 = Raylib.loadImage(Bundle.module.path(forResource: "fish1", ofType: "png", inDirectory: "Resources") ?? "")
And it's loaded successfully (output from terminal):
File loaded successfully
INFO: IMAGE: Data loaded successfully (256x256 | R8G8B8A8 | 1 mipmaps)
But then I'm trying to load texture:
public var fishTexture1 = Raylib.loadTextureFromImage(fish1)
And it bring back to _Sources/RaylibC/UnmodifiedRaylibCSrc/rlgl and rlLoadTexture (line number 2688) with EXC_BAD_ACCESS
Thanks in advance for your help!
Hello! It's most likely I'm doing something wrong...
Let's say I'm trying to load image:
public var fish1 = Raylib.loadImage(Bundle.module.path(forResource: "fish1", ofType: "png", inDirectory: "Resources") ?? "")
And it's loaded successfully (output from terminal): File loaded successfully INFO: IMAGE: Data loaded successfully (256x256 | R8G8B8A8 | 1 mipmaps)But then I'm trying to load texture:
public var fishTexture1 = Raylib.loadTextureFromImage(fish1)
And it bring back to _Sources/RaylibC/UnmodifiedRaylibCSrc/rlgl and rlLoadTexture (line number 2688) with EXC_BAD_ACCESS Thanks in advance for your help!