Skip to content

Commit

Permalink
igl | opengl | Rename 'Pre' -> 'Prev'
Browse files Browse the repository at this point in the history
Reviewed By: mmaurer

Differential Revision: D66483951

fbshipit-source-id: 6a8d55eb1baba0b9f884d71e4e9ddaf5c8c43305
  • Loading branch information
corporateshark authored and facebook-github-bot committed Nov 27, 2024
1 parent f3a99be commit 5dd5465
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/igl/opengl/RenderPipelineState.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ void RenderPipelineState::unbindVertexAttributes() {
activeAttributesLocations_.clear();
}

void RenderPipelineState::unbindPrePipelineVertexAttributes() {
void RenderPipelineState::unbindPrevPipelineVertexAttributes() {
for (const auto& l : prevPipelineStateAttributesLocations_) {
getContext().disableVertexAttribArray(l);
}
Expand Down
4 changes: 2 additions & 2 deletions src/igl/opengl/RenderPipelineState.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,15 @@ class RenderPipelineState final : public WithContext, public IRenderPipelineStat
return static_cast<ShaderStages*>(desc_.shaderStages.get());
}

void savePrePipelineStateAttributesLocations(RenderPipelineState& prevPipelineState) {
void savePrevPipelineStateAttributesLocations(RenderPipelineState& prevPipelineState) {
prevPipelineStateAttributesLocations_ = std::move(prevPipelineState.activeAttributesLocations_);
}

void clearActiveAttributesLocations() {
activeAttributesLocations_.clear();
}

void unbindPrePipelineVertexAttributes();
void unbindPrevPipelineVertexAttributes();

private:
// Tracks a list of attribute locations associated with a bufferIndex
Expand Down

0 comments on commit 5dd5465

Please sign in to comment.