I am trying to implement bindless textures into my OpenGL game engine and I encountered a weird issue. The engine runs for a couple of seconds and everything looks as expected, meaning bindless textures work. But then after about 10 seconds, the app crashes with Exception 0xc0000409 (STATUS_STACK_BUFFER_OVERRUN.) Strangely, the same exact code that I use does not crash on my other machine.
The crash occurs on my laptop, which has a Geforce GTX 880M GPU with up to date drivers. My PC with GTX 2080ti works just fine.
I simplified my FragmentShader code to make sure I am not making a mistake and this is what I have in my fragment shader at the moment.
#version 460 core
#extension GL_NV_bindless_texture : require
#extension GL_NV_gpu_shader5 : require
in vec2 TexCoords;
uniform SamplersNV { uint64_t allTextures[1024]; };
void main() {
sampler2D diffuseTexture = sampler2D(allTextures[0]);
fs_color = texture(diffuseTexture, TexCoords);
}
Is this an issue with my Laptop`s GPU or am I doing something wrong? Any ideas on how to fix it?
Note: when I switch my fs_color to be = vec4(1.0f); The crash is gone.
User contributions licensed under CC BY-SA 3.0