Pipeline state if statment cleanups

This commit is contained in:
Billy Laws 2022-09-17 13:16:28 +01:00
parent bf536aa168
commit e5919e84a1

View File

@ -495,7 +495,7 @@ namespace skyline::gpu::interconnect::maxwell3d {
boost::container::static_vector<TextureView *, engine::ColorTargetCount> colorAttachments;
for (auto &colorRenderTarget : colorRenderTargets)
if (auto view{colorRenderTarget.UpdateGet(ctx, packedState).view}; view)
if (auto view{colorRenderTarget.UpdateGet(ctx, packedState).view})
colorAttachments.push_back(view.get());
TextureView *depthAttachment{depthRenderTarget.UpdateGet(ctx, packedState).view.get()};
@ -509,7 +509,7 @@ namespace skyline::gpu::interconnect::maxwell3d {
globalShaderConfig.Update(packedState);
if (pipeline) {
if (auto newPipeline{pipeline->LookupNext(packedState)}; newPipeline) {
if (auto newPipeline{pipeline->LookupNext(packedState)}) {
pipeline = newPipeline;
return;
}