[PATCH] winex11.drv: Initialize OpenGL and the pixelformat list only when the driver is loaded.

Tomas Carnecky tom at dbservice.com
Sat Jul 21 02:25:51 CDT 2007


opengl.c:X11DRV_setup_opengl_visual() is called by
x11drv_main.c:process_attach() which is called by
x11drv_main.c:DllMain() when the driver is loaded. So instead of
checking whether OpenGL is available on the box at every function call
we can do it once when the driver is loaded. And the same goes with the
pixelformat list.

---
 dlls/winex11.drv/opengl.c |   78
+++++----------------------------------------
 1 files changed, 8 insertions(+), 70 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: f714b180b0f4fb1d78012475ecadff0b458dd558.diff
Type: text/x-patch
Size: 6925 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20070721/376ca765/f714b180b0f4fb1d78012475ecadff0b458dd558.bin


More information about the wine-patches mailing list