diff options
author | Matthew Kosarek <mattkae@protonmail.com> | 2021-10-05 07:11:20 -0400 |
---|---|---|
committer | Matthew Kosarek <mattkae@protonmail.com> | 2021-10-05 07:11:20 -0400 |
commit | 2fff4c30c18a1b89c3240222cd915e7607563896 (patch) | |
tree | f3e31e68aa95318e96f484e2321ddc1d07b9d5e0 /themes/LeafParticleRender.cpp | |
parent | d781d5a3c1ec6872361db2a15786dfc0db9780f3 (diff) |
Resizing working as intended
Diffstat (limited to 'themes/LeafParticleRender.cpp')
-rw-r--r-- | themes/LeafParticleRender.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/themes/LeafParticleRender.cpp b/themes/LeafParticleRender.cpp index e119e22..1abdd49 100644 --- a/themes/LeafParticleRender.cpp +++ b/themes/LeafParticleRender.cpp @@ -22,8 +22,8 @@ void LeafParticleRender::load(Renderer2d *renderer, TreeShape *tree) { glEnableVertexAttribArray(renderer->attributes.color); glVertexAttribPointer(renderer->attributes.color, 4, GL_FLOAT, GL_FALSE, sizeof(Renderer2dVertex), (GLvoid *)offsetof(Renderer2dVertex, color)); - glEnableVertexAttribArray(renderer->attributes.scale); - glVertexAttribPointer(renderer->attributes.scale, 2, GL_FLOAT, GL_FALSE, sizeof(Renderer2dVertex), (GLvoid *)offsetof(Renderer2dVertex, scale)); + glEnableVertexAttribArray(renderer->attributes.transform); + glVertexAttribPointer(renderer->attributes.transform, 4, GL_FLOAT, GL_FALSE, sizeof(Renderer2dVertex), (GLvoid *)offsetof(Renderer2dVertex, transform)); glBindBuffer(GL_ARRAY_BUFFER, 0); glBindVertexArray(0); |