From 5dd54658f0bfcc39848159802d785161caf8f6f7 Mon Sep 17 00:00:00 2001 From: Sergey Kosarevsky Date: Tue, 26 Nov 2024 19:12:51 -0800 Subject: [PATCH] igl | opengl | Rename 'Pre' -> 'Prev' Reviewed By: mmaurer Differential Revision: D66483951 fbshipit-source-id: 6a8d55eb1baba0b9f884d71e4e9ddaf5c8c43305 --- src/igl/opengl/RenderPipelineState.cpp | 2 +- src/igl/opengl/RenderPipelineState.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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