sultim-t / RayTracedGL1

MIT License
128 stars 29 forks source link

Request DLSS extensions only when they are supported #12

Closed kd-11 closed 2 years ago

kd-11 commented 2 years ago

Only request DLSS extensions if the loader and driver report that they are supported. This should skip loading DLSS on systems with old drivers or GPUs that are not NVIDIA. While technically all extensions should be validated before launching, I think it is fine to let the application crash if no fallback is provided e.g forcing GL renderer if RT is not possible. I have not tested this on NVIDIA, hopefully nothing broke. Runs fine on my RDNA2 card now even when compiled with DLSS support.