GPU: Implement basic rectangle rendering

This commit is contained in:
Connor McLaughlin
2019-09-14 16:27:24 +10:00
parent f47d44c151
commit 46870c6a7a
4 changed files with 65 additions and 5 deletions

View File

@ -322,7 +322,7 @@ bool GPU::HandleRenderCommand()
case Primitive::Rectangle:
{
words_per_vertex =
1 + BoolToUInt8(rc.texture_enable) + BoolToUInt8(rc.rectangle_size == DrawRectangleSize::Variable);
2 + BoolToUInt8(rc.texture_enable) + BoolToUInt8(rc.rectangle_size == DrawRectangleSize::Variable);
num_vertices = 1;
total_words = words_per_vertex;
}