mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
More zero -> nullptr fixes
This commit is contained in:
parent
132017558f
commit
359132ed55
15 changed files with 28 additions and 21 deletions
|
|
@ -236,7 +236,7 @@ private:
|
|||
{
|
||||
if (position.get() != nullptr)
|
||||
{
|
||||
glContext.extensions.glVertexAttribPointer (position->attributeID, 3, GL_FLOAT, GL_FALSE, sizeof (Vertex), 0);
|
||||
glContext.extensions.glVertexAttribPointer (position->attributeID, 3, GL_FLOAT, GL_FALSE, sizeof (Vertex), nullptr);
|
||||
glContext.extensions.glEnableVertexAttribArray (position->attributeID);
|
||||
}
|
||||
|
||||
|
|
@ -325,7 +325,7 @@ private:
|
|||
vertexBuffer->bind();
|
||||
|
||||
glAttributes.enable (glContext);
|
||||
glDrawElements (GL_TRIANGLES, vertexBuffer->numIndices, GL_UNSIGNED_INT, 0);
|
||||
glDrawElements (GL_TRIANGLES, vertexBuffer->numIndices, GL_UNSIGNED_INT, nullptr);
|
||||
glAttributes.disable (glContext);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue