[PATCH 5/5] wined3d: Enable GL_ARB_texture_rectangle in GLSL ffp fragment shaders

Stefan Dösinger stefan at codeweavers.com
Tue Apr 16 10:10:08 CDT 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am 2013-04-16 17:01, schrieb Henri Verbeet:
> On 16 April 2013 14:48, Stefan Dösinger <stefan at codeweavers.com>
> wrote:
>> +    if (gl_info->supported[ARB_TEXTURE_RECTANGLE]) +
>> shader_addline(buffer, "#extension GL_ARB_texture_rectangle :
>> enable\n"); +
> This may be a good idea anyway, but is this strictly required?
> IIRC ARB_texture_rectangle is the one special extension that's
> always implicitly enabled in GLSL if it's supported.
Yes, I get a compile error on Nvidia otherwise:

fixme:d3d_shader:print_glsl_info_log Info log received from GLSL
shader #21:
fixme:d3d_shader:print_glsl_info_log     Fragment info
fixme:d3d_shader:print_glsl_info_log     -------------
fixme:d3d_shader:print_glsl_info_log     0(5) : error C7532: global
type sampler2DRect requires "#version 140" or later
fixme:d3d_shader:print_glsl_info_log     0(5) : error C0000: ... or
#extension GL_ARB_texture_rectangle : enable
fixme:d3d_shader:print_glsl_info_log     0(10) : error C7531: global
function texture2DRect requires "#extension GL_ARB_texture_rectangle :
enable" before use

This is on Nvidia 319.12, with ARB_texture_non_power_of_two disabled
to test the RECT codepath. The d3d9 visual test uncovers this problem.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBAgAGBQJRbWnQAAoJEN0/YqbEcdMw0U8P/0XUFynxe2xQY3E+clFHgFs7
MyzXcAJMTi0kCxNHsOCiTtP/wzVVpbRAL3MZFrouAXtMIEuJ/Mtt7JRB7PrwsQPV
qgl0CtjGXB0e6ftgi3shnXprcq5XVxl74R4CV14//VcGRfHPzczDd0qvrRlKFFv9
I9fgABVboPDtezq2JrxNmIemMU6D90eOx5MSjqJyf1ZoqfCpUKW0e4UrmRUiwm5k
HGquu0b33iCvyJ+oZt1szItyQqLK6p5gERKfEvCTLr17mawrO4Q//T8D3zFVBdaZ
e1xls0euAtks/he8x/ZYxmC8mrEYS+TpwWDwr6MDth+w0cxw218Z/B2vwbH95hmQ
+Ah7Ky6xFfwtUsFXe8Ry48FFE29s1iPvijvuZZh04BKa1rmrMP2sog66VbStDxhT
gg1D3PCKJ18fNT396TkJL68Oq1VrikliEExkYXf+xI/TWwDin5Ucp7Qy+cHqZnnG
UBpV2jM+WNDDI4j1D6Sr+Q/d9h0d412fObJC0L8DWkN9f8lob2oUvF0kjYMc029z
NPsjtIllLUVRwOuu3Iwp05Z553f5A5HdhUnzZTyvgyQ8yo1tVS1doh+ErjocP9ls
xxkV6W282z78lVuOk8iVTadxVMhfupmZ7v2eEXSoxf5w/DNszt++ejR33ot2sQgA
S8p0wgrYDz1YBd5Pv7rz
=ZHz0
-----END PGP SIGNATURE-----



More information about the wine-devel mailing list