Fixed the number of vertices for DrawIndexed to draw.

TRAC #22332 Signed-off-by: Daniel Koch Signed-off-by: Shannon Woods Author: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1656 736b8ea6-26fd-11df-bfd4-992fa37f6226
parent 11861cec
...@@ -675,7 +675,7 @@ void Renderer11::drawElements(GLenum mode, GLsizei count, GLenum type, const GLv ...@@ -675,7 +675,7 @@ void Renderer11::drawElements(GLenum mode, GLsizei count, GLenum type, const GLv
} }
else else
{ {
mDeviceContext->DrawIndexed(indexInfo.maxIndex - indexInfo.minIndex + 1, 0, -static_cast<int>(indexInfo.minIndex)); mDeviceContext->DrawIndexed(count, 0, -static_cast<int>(indexInfo.minIndex));
} }
} }
......
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