Hardware acceleration not working

I’m having issues running my Java/JavaFX apps on Linux lately. It seems that hardware acceleration is not working properly.
Here’s my app, how I’m seeing it vs how it should look like: Imgur

The app is packaged as a native image with GraalVM.
If I disable hardware acceleration by passing -Dprism.order=sw as a JVM argument, it works.
The issue is not present on Windows.

I also tried downgrading the drivers to version 525.89.02, but the issue is still present

Here’s the debug/report info if needed:
nvidia-bug-report.log.gz (2.4 MB)