Skip to content

Commit 7eb49f0

Browse files
committed
IECoreGL::Shader : Add support for buffer samplers
1 parent 19b4a1c commit 7eb49f0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/IECoreGL/Shader.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,8 @@ class Shader::Implementation : public IECore::RefCounted
184184
if(
185185
p.type == GL_SAMPLER_1D || p.type == GL_SAMPLER_2D || p.type == GL_SAMPLER_3D ||
186186
p.type == GL_INT_SAMPLER_1D || p.type == GL_INT_SAMPLER_2D || p.type == GL_INT_SAMPLER_3D ||
187-
p.type == GL_UNSIGNED_INT_SAMPLER_1D || p.type == GL_UNSIGNED_INT_SAMPLER_2D || p.type == GL_UNSIGNED_INT_SAMPLER_3D
187+
p.type == GL_UNSIGNED_INT_SAMPLER_1D || p.type == GL_UNSIGNED_INT_SAMPLER_2D || p.type == GL_UNSIGNED_INT_SAMPLER_3D ||
188+
p.type == GL_SAMPLER_BUFFER || p.type == GL_INT_SAMPLER_BUFFER || p.type == GL_UNSIGNED_INT_SAMPLER_BUFFER
188189
)
189190
{
190191
// we assign a specific texture unit to each individual

0 commit comments

Comments
 (0)