mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-07-06 07:45:51 +00:00
Always initialize all pipelines in CElementGenShaders, this prevents an edge case in Quarantine Access B
This commit is contained in:
parent
1ed0a64618
commit
3bb05c0ee5
@ -137,6 +137,16 @@ void CElementGenShaders::BuildShaderDataBinding(boo::IGraphicsDataFactory::Conte
|
|||||||
std::array<boo::ObjToken<boo::IShaderPipeline>, 2>* regPipelinePmus = nullptr;
|
std::array<boo::ObjToken<boo::IShaderPipeline>, 2>* regPipelinePmus = nullptr;
|
||||||
std::array<boo::ObjToken<boo::IShaderPipeline>, 2>* redToAlphaPipelinePmus = nullptr;
|
std::array<boo::ObjToken<boo::IShaderPipeline>, 2>* redToAlphaPipelinePmus = nullptr;
|
||||||
|
|
||||||
|
if (gen.x26c_28_zTest) {
|
||||||
|
redToAlphaPipeline = &m_texRedToAlphaZTest;
|
||||||
|
regPipelineSub = &m_texZTestNoZWriteSub;
|
||||||
|
redToAlphaPipelineSub = &m_texRedToAlphaZTestSub;
|
||||||
|
} else {
|
||||||
|
redToAlphaPipeline = &m_texRedToAlphaNoZTest;
|
||||||
|
regPipelineSub = &m_texNoZTestNoZWriteSub;
|
||||||
|
redToAlphaPipelineSub = &m_texRedToAlphaNoZTestSub;
|
||||||
|
}
|
||||||
|
|
||||||
if (desc->x54_x40_TEXR) {
|
if (desc->x54_x40_TEXR) {
|
||||||
if (desc->x58_x44_TIND) {
|
if (desc->x58_x44_TIND) {
|
||||||
if (desc->x45_30_x32_24_CIND) {
|
if (desc->x45_30_x32_24_CIND) {
|
||||||
@ -159,16 +169,6 @@ void CElementGenShaders::BuildShaderDataBinding(boo::IGraphicsDataFactory::Conte
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (gen.x26c_28_zTest) {
|
|
||||||
redToAlphaPipeline = &m_texRedToAlphaZTest;
|
|
||||||
regPipelineSub = &m_texZTestNoZWriteSub;
|
|
||||||
redToAlphaPipelineSub = &m_texRedToAlphaZTestSub;
|
|
||||||
} else {
|
|
||||||
redToAlphaPipeline = &m_texRedToAlphaNoZTest;
|
|
||||||
regPipelineSub = &m_texNoZTestNoZWriteSub;
|
|
||||||
redToAlphaPipelineSub = &m_texRedToAlphaNoZTestSub;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (gen.x26c_26_AAPH) {
|
if (gen.x26c_26_AAPH) {
|
||||||
if (gen.x26c_28_zTest)
|
if (gen.x26c_28_zTest)
|
||||||
regPipeline = &m_texAdditiveZTest;
|
regPipeline = &m_texAdditiveZTest;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user