You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I have included Corrade/Containers/ArrayViewStl.h, but the automatic conversion of std::vector throws a run time error when passing it to the GL::Buffer setData() function.
Here is what compiles & runs without problems (as a workaround): bufferV.setData(Corrade::Containers::arrayView(vertexData.data(), vertexData.size()));
But replacing the line with the 'better' code: bufferV.setData(vertexData);
Throws the following run time error:
Nice, two race conditions at the same time -- just when I wanted to post exactly the same comment about this being pushed to master today early morning 😆
Hello,
I have included
Corrade/Containers/ArrayViewStl.h,
but the automatic conversion of std::vector throws a run time error when passing it to theGL::Buffer setData()
function.Here is what compiles & runs without problems (as a workaround):
bufferV.setData(Corrade::Containers::arrayView(vertexData.data(), vertexData.size()));
But replacing the line with the 'better' code:
bufferV.setData(vertexData);
Throws the following run time error:
`Program: ...cuments\magnum_vector_field\build\src\Debug\MyApplication.exe
File: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.22.27905\include\vector
Line: 1475
Expression: vector subscript out of range
For information on how your program can cause an assertion
failure, see the Visual C++ documentation on asserts.`
The function where the error arises:
`void MyApplication::updateBuffers() {
const float lifeTimeDelta = 0.000001f;
}`
The text was updated successfully, but these errors were encountered: