Skip to content

Commit 3da2772

Browse files
authored
Merge pull request #1264 from johnhaddon/bufferSamplers
IECoreGL::Shader : Add support for buffer samplers
2 parents 19b4a1c + 7eb49f0 commit 3da2772

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)