I have a strange crash I thing maybe a drivers but I not sure yet.
I’m using GLEW to use DSA and texture buffer but I have a crash from nVidia drivers after the call of glTextureBufferEXT.
The following code make my program crash:
glGenBuffers(1, &textureBufferName);
glNamedBufferDataEXT(
textureBufferName,
textureBufferData.size() * sizeof(vec4),
&textureBufferData[0],
GL_STATIC_DRAW);
glGenTextures(1, &bufferTextureName);
glTextureBufferEXT(bufferTextureName, GL_TEXTURE_BUFFER_EXT, GL_RGBA32F_ARB, textureBufferName);
but this one is work fine:
glGenBuffers(1, &textureBufferName);
glNamedBufferDataEXT(
textureBufferName,
textureBufferData.size() * sizeof(vec4),
&textureBufferData[0],
GL_STATIC_DRAW);
glGenTextures(1, &bufferTextureName);
glActiveTexture(GL_TEXTURE0 + 0);
glBindTexture(GL_TEXTURE_BUFFER_EXT, bufferTextureName);
glTexBufferEXT(GL_TEXTURE_BUFFER_EXT, GL_RGBA32F, textureBufferName);
glBindTexture(GL_TEXTURE_BUFFER_EXT, 0);
I have to say … I have been working with DSA since about 2 months ago and I think and it makes my code so nice, state management and debugging so easy. This kind of work around just ruined all my efforts. I can’t wait to see this extension stabilized!
We also really need an updated of this extension to support VAO!