-
Notifications
You must be signed in to change notification settings - Fork 152
Description
Hi,
I have been giving a shot to LLGL and I wanted to test it on macOS and iOS (Metal backend) and a couple of tutorials seem to have issues
Macbook system specs:
- Model: Macbook Pro
- SoC: Apple M1 Max
- RAM: 64 GB
- OS: MacOS Sonoma 14.7
iPhone system specs:
- Model: iPhone X
- OS: iOS 16.7.10
Hello triangle (iOS)
This tutorial shows just a black screen and no triangle.
The app will then start leaking memory by hundreds of megs per second similar to what was reported in #129 on macOS.
Strangely, the Texturing tutorial has no issue at all if that rings a bell :)
Render target (macOS & iOS)
The render target tutorial will crash as follows on macOS (or iOS):
I managed to fix it by changing the default value of ENABLE_DEPTH_TEXTURE to 1.
I could post a PR that adds a platform check to enable depth on Apple platforms by default.
But I can't tell if that's ever supposed to happen in the first place.
Shadow mapping (macOS & iOS)
The shadow map tutorial clearly has issues as shown below:
On iOS, I do have a black screen as well.
Strangely, the HelloGame example seems to have properly working shadow maps 🤷♂️
Fonts (macOS & iOS)
Similar issue as with the shadow map it seems:
Similar results on iOS with a black background screen instead of a pink one.
Stencil buffer (macOS & iOS)
The whole screen is pink, and I start to suspect these tutorials all have the same core issue
On iOS, I have just a black screen instead of a pink screen (but no memory leak like in the hello triangle tutorial).