https://bugs.winehq.org/show_bug.cgi?id=49422
--- Comment #4 from Dmitry Utkin loentar@gmail.com --- I wans't able to compile with opengl. instructions seems to be outdated because the mentioned source package wine-dev is missing.
Stable version 5.0.1 is working without this bug.
I think I give up, so you may close this issue.