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
Actually m_storage_buffer here only use 8 data and storage of this array is 8, but glGenBuffers generates 16 which will write more data after memory of m_storage_buffer[8].
I think both GenBuffers and DeleteBuffers should use 8.
Spec do not have this check, just applications need to ensure correctness.
The text was updated successfully, but these errors were encountered:
letidealsfly
added a commit
to letidealsfly/VK-GL-CTS
that referenced
this issue
Aug 8, 2024
Hi,
There is a memory leak issue when run KHR-GL46.compute_shader.resources-max.
Init:
GLuint m_storage_buffer[8];
Line: https://github.com/KhronosGroup/VK-GL-CTS/blob/main/external/openglcts/modules/gl/gl4cComputeShaderTests.cpp#L5172
Gen:
glGenBuffers(16, m_storage_buffer);
Line: https://github.com/KhronosGroup/VK-GL-CTS/blob/main/external/openglcts/modules/gl/gl4cComputeShaderTests.cpp#L5301
Delete:
glDeleteBuffers(16, m_storage_buffer);
Line: https://github.com/KhronosGroup/VK-GL-CTS/blob/main/external/openglcts/modules/gl/gl4cComputeShaderTests.cpp#L5322
Actually m_storage_buffer here only use 8 data and storage of this array is 8, but
glGenBuffers
generates 16 which will write more data after memory of m_storage_buffer[8].I think both
GenBuffers
andDeleteBuffers
should use 8.Spec do not have this check, just applications need to ensure correctness.
The text was updated successfully, but these errors were encountered: