Scale the vertex coordinates when the viewport has been clamped.
TRAC #22649
Signed-off-by: Geoff Lang
Signed-off-by: Shannon Woods
Author: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1952 736b8ea6-26fd-11df-bfd4-992fa37f6226
diff --git a/src/compiler/OutputHLSL.cpp b/src/compiler/OutputHLSL.cpp
index 5ed62aa..14a38d4 100644
--- a/src/compiler/OutputHLSL.cpp
+++ b/src/compiler/OutputHLSL.cpp
@@ -100,7 +100,7 @@
}
else
{
- mUniformRegister = 2; // Reserve registers for dx_DepthRange and dx_HalfPixelSize
+ mUniformRegister = 2; // Reserve registers for dx_DepthRange and dx_ViewAdjust
}
}
else
@@ -629,7 +629,7 @@
out << "uniform float3 dx_DepthRange : register(c0);\n";
}
- out << "uniform float2 dx_HalfPixelSize : register(c1);\n"
+ out << "uniform float4 dx_ViewAdjust : register(c1);\n"
"\n";
}