Bindless 3D texture with sampler object

Bindless textures worked perfectly, until recently when I had use for a bindless 3D texture. glGetTextureHandleARB works, while glGetTextureSamplerHandleARB gives me an “GL_INVALID_OPERATION: Not a valid texture”.
Same sampler with a bindless 2D texture works. Any ideas?


Maybe the texture object is invalid, like the error message says. Or maybe one of the settings for the sampler object is not appropriate for 3D textures.

Well, it works with glGetTextureHandleARB so clearly the texture is fine. Maybe the sampler is at fault. I specify linear interpolation, repeat wrapping over s and clamping over r and t.