diff --git a/src/igl/opengl/RenderPipelineState.cpp b/src/igl/opengl/RenderPipelineState.cpp index 6b04a3ea21..34b5640ada 100644 --- a/src/igl/opengl/RenderPipelineState.cpp +++ b/src/igl/opengl/RenderPipelineState.cpp @@ -326,7 +326,7 @@ void RenderPipelineState::unbindVertexAttributes() { activeAttributesLocations_.clear(); } -void RenderPipelineState::unbindPrePipelineVertexAttributes() { +void RenderPipelineState::unbindPrevPipelineVertexAttributes() { for (const auto& l : prevPipelineStateAttributesLocations_) { getContext().disableVertexAttribArray(l); } diff --git a/src/igl/opengl/RenderPipelineState.h b/src/igl/opengl/RenderPipelineState.h index 98f5c5457c..fd4e527efc 100644 --- a/src/igl/opengl/RenderPipelineState.h +++ b/src/igl/opengl/RenderPipelineState.h @@ -71,7 +71,7 @@ class RenderPipelineState final : public WithContext, public IRenderPipelineStat return static_cast(desc_.shaderStages.get()); } - void savePrePipelineStateAttributesLocations(RenderPipelineState& prevPipelineState) { + void savePrevPipelineStateAttributesLocations(RenderPipelineState& prevPipelineState) { prevPipelineStateAttributesLocations_ = std::move(prevPipelineState.activeAttributesLocations_); } @@ -79,7 +79,7 @@ class RenderPipelineState final : public WithContext, public IRenderPipelineStat activeAttributesLocations_.clear(); } - void unbindPrePipelineVertexAttributes(); + void unbindPrevPipelineVertexAttributes(); private: // Tracks a list of attribute locations associated with a bufferIndex