- put all the common part of buffer based drawing into a separate method of the vertex buffer.

This commit is contained in:
Christoph Oelckers 2014-05-20 22:37:38 +02:00
commit 09ba62fbef
7 changed files with 16 additions and 24 deletions

View file

@ -637,9 +637,7 @@ static void FillScreen()
ptr++;
ptr->Set((float)SCREENWIDTH, (float)SCREENHEIGHT, 0, 0, 0);
ptr++;
unsigned int offset;
unsigned int count = GLRenderer->mVBO->GetCount(ptr, &offset);
glDrawArrays(GL_TRIANGLE_FAN, offset, count);
GLRenderer->mVBO->RenderCurrent(ptr, GL_TRIANGLE_STRIP);
}
}