Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use std::vector::data() when setting GL data #300

Merged
merged 1 commit into from
Oct 2, 2024

Conversation

gkoulin
Copy link
Contributor

@gkoulin gkoulin commented Oct 1, 2024

MSVC in Debug will throw "vector subscript out of range" error when calling std::vector::operator[] on empty vector. This will fail unit tests. Instead use std::vector::data() to retrieve data pointer.

MSVC in Debug will throw "vector subscript out of range" error when calling `std::vector::operator[]` on empty vector. This will fail unit tests. Instead use `std::vector::data()` to retrieve data pointer.
@nmwsharp nmwsharp merged commit 9f97b70 into nmwsharp:master Oct 2, 2024
5 checks passed
@nmwsharp
Copy link
Owner

nmwsharp commented Oct 2, 2024

thank you!

@gkoulin gkoulin deleted the gk/test-fix branch October 2, 2024 08:21
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.

2 participants