Skip to content

Commit

Permalink
fixup! IECoreGL::Selector : Camera-space depth sampling
Browse files Browse the repository at this point in the history
  • Loading branch information
ericmehl committed Feb 5, 2024
1 parent 2e755a3 commit 91a3646
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/IECoreGL/Selector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -443,10 +443,10 @@ class Selector::Implementation : public IECore::RefCounted

std::vector<GLenum> buffers;
buffers.resize( std::max( fragDataLocation, depthDataLocation ) + 1, GL_NONE );
buffers[buffers.size() - ( depthDataLocation > 0 ? 2 : 1 )] = GL_COLOR_ATTACHMENT0;
buffers[fragDataLocation] = GL_COLOR_ATTACHMENT0;
if( m_useCameraDepth )
{
buffers[buffers.size() - 1] = GL_COLOR_ATTACHMENT1;
buffers[depthDataLocation] = GL_COLOR_ATTACHMENT1;
}
glDrawBuffers( buffers.size(), &buffers[0] );

Expand Down

0 comments on commit 91a3646

Please sign in to comment.