We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ceb86eb commit bd9f68eCopy full SHA for bd9f68e
src/libprojectM/Renderer/TextureSamplerDescriptor.cpp
@@ -20,7 +20,7 @@ TextureSamplerDescriptor::TextureSamplerDescriptor(const std::shared_ptr<class T
20
21
auto TextureSamplerDescriptor::Empty() const -> bool
22
{
23
- return m_texture->Empty();
+ return !m_texture || m_texture->Empty();
24
}
25
26
void TextureSamplerDescriptor::Bind(GLint unit, const Shader& shader) const
0 commit comments