WineD3D: fix GLSL regression / draw buffers support

Roderick Colenbrander thunderbird2k at gmx.net
Wed Aug 9 11:24:08 CDT 2006


Hi,

Recently Jason Green replaced 'gl_FragColor' in the glsl generator by 'gl_FragData[0]. Unfortunately gl_FragData is only available on videocards with support for GL_ARB_draw_buffers. The change breaks glsl support on card without this extension like GeforceFX boards.

This patch adds support for the new extension. In the glsl shader generator it checks if the extension is present and if it is it uses gl_FragData and else gl_FragColor. Further I changed the capability code a little as the new extension will provide us with multiple render target support (cap: NumSimultaneousRTs).

Regards,
Roderick Colenbrander
-- 


Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wined3d_draw_buffers.patch
Type: text/x-diff
Size: 6244 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20060809/24b8904d/wined3d_draw_buffers.bin


More information about the wine-patches mailing list