diff --git a/src/igl/tests/ogl/SamplerState.cpp b/src/igl/tests/ogl/SamplerState.cpp index 416242a3ef..718d363575 100644 --- a/src/igl/tests/ogl/SamplerState.cpp +++ b/src/igl/tests/ogl/SamplerState.cpp @@ -159,4 +159,11 @@ TEST_F(SamplerStateOGLTest, SamplerStateConvertAddressMode) { GL_MIRRORED_REPEAT); } +TEST_F(SamplerStateOGLTest, BindNullTexture) { + auto dummySamplerState = + std::make_unique(*context_, SamplerStateDesc::newLinear()); + dummySamplerState->bind(nullptr); + EXPECT_TRUE(true); // Expect no crash +} + } // namespace igl::tests