Module: wine Branch: master Commit: 640e9766fd6aa998d345656bfa76e037989e2706 URL: https://gitlab.winehq.org/wine/wine/-/commit/640e9766fd6aa998d345656bfa76e03...
Author: Rémi Bernon rbernon@codeweavers.com Date: Fri Dec 9 12:59:36 2022 +0100
opengl32: Avoid calling functions that have not been queried yet.
The glMapBuffer and al. functions are all duplicated between EXT/ARB and core functions, and we reduced code duplication by redirecting the EXT to the core functions.
The internal function table is only filled as the functions are queried, and it causes crahes when games are using the EXT functions without querying the core function first.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53990
---
dlls/opengl32/unix_wgl.c | 105 ++++++++++++++++++++++++++++++++++------------- dlls/opengl32/wgl.c | 61 +++++++++++++++++++-------- 2 files changed, 119 insertions(+), 47 deletions(-)