Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cl-raylib support load-texture? #48

Open
Oleg-Harput opened this issue Jul 28, 2023 · 2 comments
Open

cl-raylib support load-texture? #48

Oleg-Harput opened this issue Jul 28, 2023 · 2 comments

Comments

@Oleg-Harput
Copy link

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

@longlene
Copy link
Owner

longlene commented Aug 2, 2023

@Oleg-Harput Could you please provide more details?

@osspike
Copy link

osspike commented Feb 27, 2024

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 <http://www.sbcl.org/>.

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> 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants