Skip to content

Commit

Permalink
DX9: Disable an annoying warning in vertex shader generator to clean …
Browse files Browse the repository at this point in the history
…up our reports

warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them
  • Loading branch information
hrydgard committed Sep 10, 2014
1 parent cf9a614 commit 6fa1872
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions GPU/Directx9/VertexShaderGeneratorDX9.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ void GenerateVertexShaderDX9(int prim, char *buffer, bool useHWTransform) {
}
}

WRITE(p, "#pragma warning( disable : 3571 )\n");

if (gstate.isModeThrough()) {
WRITE(p, "float4x4 u_proj_through;\n");
Expand Down

0 comments on commit 6fa1872

Please sign in to comment.