SDL icon indicating copy to clipboard operation
SDL copied to clipboard

[Regression] Software renderer not working at all on MacOS (tested on both M1 and Intel)

Open oo8dev opened this issue 2 years ago • 6 comments

How to reproduce: Start ./testcamera or ./testdrawchessboard.

Video:

https://github.com/libsdl-org/SDL/assets/29149078/a8470181-169d-4699-8a6d-b31c895407f3

Macbook 2015, Intel, MacOS 12.7.2.

On M1 CPU it just shows a black screen (reported by my colleagues)

~~Probably continuation of the https://github.com/libsdl-org/SDL/issues/9221~~ Nevermind SDL_FlushRenderer doesn't seem to change anything.

Tested by many different methods: via SDL_CreateSoftwareRenderer: not working via SDL_CreateRenderer with SDL_RENDER_DRIVER software hint: not working via SDL_GetWindowSurface & Blit & SDL_UpdateWindowSurface: not working

oo8dev avatar Mar 26 '24 14:03 oo8dev

It seems that the surface texture is wrongly displayed to the screen somehow.

oo8dev avatar Mar 26 '24 14:03 oo8dev

SDL_RENDER_DRIVER=software ./testgeometry shows up a black screen on MacOS. Works on Linux.

Bisecting right now...

oo8dev avatar Mar 26 '24 14:03 oo8dev

Bisected! commit ba074acad43fe3253fcdb9b7a696152fb01c5e42 Author: Sam Lantinga [email protected] Date: Tue Feb 6 05:31:43 2024 -0800

Implemented scRGB colorspace and HDR support on macOS

@slouken

oo8dev avatar Mar 26 '24 15:03 oo8dev

Even better, testdrawchessboard crashes here. I'm looking into it, thanks!

slouken avatar Mar 26 '24 16:03 slouken

Fixed, thanks!

slouken avatar Mar 26 '24 17:03 slouken

Can confirm, works perfectly!

oo8dev avatar Mar 26 '24 18:03 oo8dev