Skip to content

Conversation

pbialeck
Copy link

No description provided.

tr_create_uniform_buffer(m_renderer, 16 * sizeof(float), true, &m_uniform_buffer);

m_desc_set->descriptors[0].uniform_buffers[0] = m_uniform_buffer;
m_desc_set->descriptors[1].textures[0] = m_texture;
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code caused buffer overrun because std::vector descriptors in line 216 has one element and m_desc_set->descriptors is allocated with one element too.
Removed buffer overrun code and creation of m_texture and m_sampler.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant