[vlc-commits] [Git][videolan/vlc][master] d3d_dynamic_shader: disable useless warning

Hugo Beauzée-Luyssen gitlab at videolan.org
Fri May 21 12:58:04 UTC 2021



Hugo Beauzée-Luyssen pushed to branch master at VideoLAN / VLC


Commits:
be4cdbc2 by Steve Lhomme at 2021-05-21T12:33:43+00:00
d3d_dynamic_shader: disable useless warning

This warning is useless because we already clip the values before.
The linear values are never negative.

Shader at 0x00007FFE51EFA920(105,12-30): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them

- - - - -


1 changed file:

- modules/video_output/win32/d3d_dynamic_shader.c


Changes:

=====================================
modules/video_output/win32/d3d_dynamic_shader.c
=====================================
@@ -36,6 +36,7 @@
 #include "d3d_dynamic_shader.h"
 
 static const char globPixelShaderDefault[] = "\
+#pragma warning( disable: 3571 )\n\
 cbuffer PS_CONSTANT_BUFFER : register(b0)\n\
 {\n\
     float4x3 Colorspace;\n\



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/be4cdbc261bcf49341f8783dd9afdfb48e4c0a78

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/be4cdbc261bcf49341f8783dd9afdfb48e4c0a78
You're receiving this email because of your account on code.videolan.org.




More information about the vlc-commits mailing list