WineD3D: dynamicly load GL_ARB_multitexture functions

Roderick Colenbrander thunderbird2k at gmx.net
Thu May 25 06:54:03 CDT 2006


Hi,

At the moment WineD3D uses the GL_ARB_multitexture extension for multitexturing but we don't dynamicly load the functions. This isn't a problem for most OpenGL drivers as about all cards from the last 8 years support it. On Windows opengl32.dll doesn't contain the symbols, so we need to dynamicly load them.

This patch will dynamicly load the needed GL_ARB_multitexture functions, adds the needed function prototypes and defines to wined3d_gl.h and gets rid of a GL_VERSION compile check. The patch also removes a few lines of code in drawprim.c. The piece of code checked for the presence of GL_ARB_multitexture and if it wasn't supported it called GLMULTITEXCOORD4F (which is only available if GL_ARB_multitexture is available) and then continued. Further in that function GLCLIENTACTIVETEXTURE (which is part of the extension too) before we checked if the extension was available.

Regards,
Roderick Colenbrander
-- 


Bis zu 70% Ihrer Onlinekosten sparen: GMX SmartSurfer!
      Kostenlos downloaden: http://www.gmx.net/de/go/smartsurfer
    
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wined3d_multitexture.patch
Type: text/x-diff
Size: 14405 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20060525/6d3539e5/wined3d_multitexture-0001.patch


More information about the wine-patches mailing list