1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-09-18 14:27:39 +03:00

Fix bugs with color buffer

This commit is contained in:
mzernova
2024-08-23 17:42:56 +01:00
parent 9875f21d34
commit 1140545f5d
15 changed files with 60 additions and 31 deletions

View File

@@ -172,7 +172,9 @@ void Graphic3d_ArrayOfPrimitives::init (Graphic3d_TypeOfPrimitiveArray theType,
anAttribs[aNbAttribs].Id = Graphic3d_TOA_COLOR;
anAttribs[aNbAttribs].DataType = Graphic3d_TOD_VEC4UB;
++aNbAttribs;
}
if ((theArrayOptions & Graphic3d_ArrayFlags_VertexColorBack) != 0)
{
anAttribs[aNbAttribs].Id = Graphic3d_TOA_COLOR_BACK;
anAttribs[aNbAttribs].DataType = Graphic3d_TOD_VEC4UB;
++aNbAttribs;