Skip to content

Add a Windows EGL implementation

Jesse Natalie requested to merge jenatali/mesa:windows-egl into main

The first several commits here muck around with some internals of the WGL frontend, to enable some simpler pointer-based access to objects without having to go through DHGLRC or HWND or HDC, since EGL is a more object-oriented API compared to WGL. Then, the pointer-based methods are exported from the DLL.

After that, the EGL target has some compiler fixes and rearranging to be able to build for Windows and reference libgallium_wgl.dll, and minor bugfixes to work on Windows.

Lastly, a basic WGL driver for EGL is added, which can SwapBuffers for a window surface. PBuffers and pixmaps and images will come later.

Edited by Jesse Natalie

Merge request reports