Mesh: Fix linter warnings

This commit is contained in:
wmayer
2024-11-21 19:24:54 +01:00
committed by wwmayer
parent fbd9eac848
commit 164f1e3813

View File

@@ -133,11 +133,11 @@ void MeshRenderer::Private::generateGLArrays(SoGLRenderAction* action,
indices.create();
vertices.bind();
vertices.allocate(&(vertex[0]), vertex.size() * sizeof(float));
vertices.allocate(vertex.data(), vertex.size() * sizeof(float));
vertices.release();
indices.bind();
indices.allocate(&(index[0]), index.size() * sizeof(int32_t));
indices.allocate(index.data(), index.size() * sizeof(int32_t));
indices.release();
this->matbinding = matbind;
}
@@ -630,7 +630,7 @@ void SoFCIndexedFaceSet::drawCoords(const SoGLCoordinateElement* const vertexlis
coords3d = vertexlist->getArrayPtr3();
int mod = numindices / (4 * this->renderTriangleLimit) + 1;
float size = std::min<float>((float)mod, 3.0f);
float size = std::min<float>((float)mod, 3.0F);
glPointSize(size);
SbBool per_face = false;