Commit 2c199b17 by jbauman@chromium.org

Set max vertex correctly when drawing closing line

We were setting the max vertex way too low, causing AMD cards to draw the line with an incorrect vertex. BUG= TEST=enable "Composited render layer borders" in chromium Review URL: http://codereview.appspot.com/4588042 git-svn-id: https://angleproject.googlecode.com/svn/trunk@691 736b8ea6-26fd-11df-bfd4-992fa37f6226
parent 0fe4dd00
#define MAJOR_VERSION 0
#define MINOR_VERSION 0
#define BUILD_VERSION 0
#define BUILD_REVISION 689
#define BUILD_REVISION 691
#define STRINGIFY(x) #x
#define MACRO_STRINGIFY(x) STRINGIFY(x)
......
......@@ -2854,7 +2854,7 @@ void Context::drawClosingLine(unsigned int first, unsigned int last)
{
device->SetIndices(mClosingIB->getBuffer());
device->DrawIndexedPrimitive(D3DPT_LINELIST, 0, 0, 2, offset, 1);
device->DrawIndexedPrimitive(D3DPT_LINELIST, 0, 0, last, offset, 1);
}
else
{
......
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