WineD3D: fix GLSL regression / draw buffers support

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


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).

Roderick Colenbrander

Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wined3d_draw_buffers.patch
Type: text/x-diff
Size: 6244 bytes
Desc: not available
Url :

More information about the wine-patches mailing list