FLT divide by zero trying to create renderer for NVIDIA gpu

Hi everyone, how are you doing?

I am receiving an “FLT divide by zero” error when trying to create a renderer with

// will default to Direct3d renderer
FSDLWindow := SDL_CreateWindow(FTitle, LMonitor.x, LMonitor.y, LMonitor.w, LMonitor.h, 0);  

My notebook have two GPUs, an on-board Intel and a discrete NVIDIA , and the error happens only on NVIDIA. Here ("FLT divide by zero" when SDL2 window running on NVIDIA GPU) Jamie suggests that I may need to:


and Tron suggests:


Calling these functions during the OnCreate in the main form did not solve the problem.

Can you shed some light on this?