Investigate issues with transform_viewport conformance

TRAC #12035 transform_viewport failed when rendering into an Nx1 or 1xN viewport. Signed-off-by: Shannon Woods Signed-off-by: Daniel Koch Author: Andrew Lewycky git-svn-id: https://angleproject.googlecode.com/svn/trunk@209 736b8ea6-26fd-11df-bfd4-992fa37f6226
parent aede6301
...@@ -1234,12 +1234,10 @@ bool Context::applyRenderTarget(bool ignoreViewport) ...@@ -1234,12 +1234,10 @@ bool Context::applyRenderTarget(bool ignoreViewport)
if (currentProgram) if (currentProgram)
{ {
D3DSURFACE_DESC description;
renderTarget->GetDesc(&description);
Program *programObject = getCurrentProgram(); Program *programObject = getCurrentProgram();
GLint halfPixelSize = programObject->getUniformLocation("dx_HalfPixelSize"); GLint halfPixelSize = programObject->getUniformLocation("dx_HalfPixelSize");
GLfloat xy[2] = {1.0f / description.Width, 1.0f / description.Height}; GLfloat xy[2] = {1.0f / viewport.Width, 1.0f / viewport.Height};
programObject->setUniform2fv(halfPixelSize, 1, (GLfloat*)&xy); programObject->setUniform2fv(halfPixelSize, 1, (GLfloat*)&xy);
GLint window = programObject->getUniformLocation("dx_Window"); GLint window = programObject->getUniformLocation("dx_Window");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment