Skip to content

Fix using the NGL renderer on 32-bit Windows

Chun-wei Fan requested to merge ngl-windows-32 into main

Hi,

In the NGL renderer, we are calling g_clear_pointer() using glDeleteSync(), which does not use the standard calling convention on Windows, which leads to crashes on 32-bit Windows. Fix this by using a wrapper function that in turn calls glDeleteSync(), so that we are assured the correct calling convention is being used for g_clear_pointer().

This should also be backported to the gtk-4-14 branch.

With blessings, thank you!

Merge request reports