longlene / cl-raylib

Common Lisp binding of raylib
MIT License
145 stars 21 forks source link

cl-raylib support load-texture? #48

Open Oleg-Harput opened 1 year ago

Oleg-Harput commented 1 year ago

I can not load texture in cl-raylib, what must i do?

longlene commented 1 year ago

@Oleg-Harput Could you please provide more details?

osspike commented 6 months ago

Edit: The problem is resolved after upgrading raylib from version 4.5 to 5.0.

I'm not sure if I'm experiencing the same problem, but the load-texture function causes a fatal error in SBCL for me.

SBCL version: 2.4.1 Platform: macOS Sonoma 14.2.1 Architecture: arm64

Steps to reproduce: (edit: the reproduction steps are incorrect because they are missing a call to init-window)

``` This is SBCL 2.4.1, an implementation of ANSI Common Lisp. More information about SBCL is available at . SBCL is free software, provided as is, with absolutely no warranty. It is mostly in the public domain; some portions are provided under BSD-style licenses. See the CREDITS and COPYING files in the distribution for more information. * (ql:quickload :cl-raylib) To load "cl-raylib": Load 1 ASDF system: cl-raylib ; Loading "cl-raylib" .................. (:CL-RAYLIB) * (raylib:load-texture "non-existant.png") WARNING: FILEIO: [non-existant.png] Failed to open file #S(CL-RAYLIB::TEXTURE :ID 0 :WIDTH 0 :HEIGHT 0 :MIPMAPS 0 :FORMAT 0) * (raylib:load-texture "assets/apple.png") INFO: FILEIO: [assets/apple.png] File loaded successfully INFO: IMAGE: Data loaded successfully (16x16 | R8G8B8A8 | 1 mipmaps) fatal error encountered in SBCL pid 37116 pthread 0x1e431d000: maximum interrupt nesting depth (8) exceeded Welcome to LDB, a low-level debugger for the Lisp runtime environment. ldb> ```