Skip to content

[Platform/RGFW] add support for software rendering#5773

Merged
raysan5 merged 7 commits into
raysan5:masterfrom
CrackedPixel:rgfw-add-software-renderer
Apr 17, 2026
Merged

[Platform/RGFW] add support for software rendering#5773
raysan5 merged 7 commits into
raysan5:masterfrom
CrackedPixel:rgfw-add-software-renderer

Conversation

@CrackedPixel
Copy link
Copy Markdown
Contributor

@CrackedPixel CrackedPixel commented Apr 17, 2026

Linux: ✔️
Windows: ✔️
Mac (intel): ✔️
Mac (arm): ✔️
Web: ❌ (not going to do)

sample build/test steps:

cd src
make PLATFORM=PLATFORM_DESKTOP_RGFW GRAPHICS=GRAPHICS_API_OPENGL_SOFTWARE

cd ../examples
make PLATFORM=PLATFORM_DESKTOP_RGFW GRAPHICS=GRAPHICS_API_OPENGL_SOFTWARE

@CrackedPixel CrackedPixel marked this pull request as draft April 17, 2026 05:05
@CrackedPixel CrackedPixel marked this pull request as ready for review April 17, 2026 12:38
@CrackedPixel
Copy link
Copy Markdown
Contributor Author

Tested on linux, mac (arm+intel), and windows. all work great

mac has 2 small quirks

  • it has to manually convert RGB to BGR, i dont really like this but i couldnt find anothing working solution
  • retina displays require more pixel buffers to account for the sort of scaling stuff

these are both handled by the platform, not users

i started working on web but there was an issue with the webgl vs '2d' contexts that required changes to RGFW itself. i decided it wasnt worth the effort to pursue it and software rendering will just be unavailable for WEB_RGFW users

@raysan5 raysan5 merged commit f0a043b into raysan5:master Apr 17, 2026
16 checks passed
@raysan5
Copy link
Copy Markdown
Owner

raysan5 commented Apr 17, 2026

@CrackedPixel Thanks for the review!

@CrackedPixel CrackedPixel deleted the rgfw-add-software-renderer branch April 17, 2026 20:46
Peter0x44 pushed a commit to Peter0x44/raylib that referenced this pull request Apr 20, 2026
* add support for software rendering

* null check on freeing

* add back line

* rename framebuffer to surface

* add guard on free

* update makefile to prevent software on web

* update for mac
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

Successfully merging this pull request may close these issues.

2 participants