Skip to content

Commit 66401ca

Browse files
committed
IECoreGL::Shader : Support 1D samplers
1 parent a4fd2b7 commit 66401ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/IECoreGL/Shader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ class Shader::Implementation : public IECore::RefCounted
181181
}
182182
}
183183

184-
if( p.type == GL_SAMPLER_2D || p.type == GL_SAMPLER_3D )
184+
if( p.type == GL_SAMPLER_1D || p.type == GL_SAMPLER_2D || p.type == GL_SAMPLER_3D )
185185
{
186186
// we assign a specific texture unit to each individual
187187
// sampler parameter - this makes it much easier to save

0 commit comments

Comments
 (0)