Batches decals and reduces the number of state changes.

Reviewed By: wraitii
Tested By: Langbart
Differential Revision: https://code.wildfiregames.com/D3545
This was SVN commit r24867.
This commit is contained in:
vladislavbelov
2021-02-10 16:42:56 +00:00
parent 8ea4f3186c
commit 5e1b84ed64
4 changed files with 77 additions and 30 deletions
+2
View File
@@ -1147,6 +1147,8 @@ void CPatchRData::RenderOutline()
void CPatchRData::RenderSides(const std::vector<CPatchRData*>& patches, const CShaderProgramPtr& shader)
{
PROFILE3("render terrain sides");
glDisable(GL_CULL_FACE);
CVertexBuffer* lastVB = nullptr;