Mesh: Fix linter warnings
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user