mirror of https://github.com/AxioDL/metaforce.git
Fix CInputGenerator, CRadarPaintShaderGLSL and CPhazonSuitFilterGLSL crashes
This commit is contained in:
parent
e798fe49b4
commit
c70a0d81cb
|
@ -92,7 +92,7 @@ static const char* BlurVS =
|
|||
"#version 330\n"
|
||||
BOO_GLSL_BINDING_HEAD
|
||||
"layout(location=0) in vec4 posIn;\n"
|
||||
"layout(location=3) in vec4 uvIn;\n"
|
||||
"layout(location=1) in vec4 uvIn;\n"
|
||||
"\n"
|
||||
"UBINDING0 uniform PhazonSuitBlurUniform\n"
|
||||
"{\n"
|
||||
|
|
|
@ -126,7 +126,7 @@ CRadarPaintShader::Initialize(boo::VulkanDataFactory::Context& ctx)
|
|||
{nullptr, nullptr, boo::VertexSemantic::UV4, 3},
|
||||
{nullptr, nullptr, boo::VertexSemantic::Color}
|
||||
};
|
||||
s_VtxFmt = ctx.newVertexFormat(2, VtxVmt);
|
||||
s_VtxFmt = ctx.newVertexFormat(9, VtxVmt);
|
||||
s_Pipeline = ctx.newShaderPipeline(VS, FS, s_VtxFmt, boo::BlendFactor::SrcAlpha,
|
||||
boo::BlendFactor::One, boo::Primitive::TriStrips,
|
||||
boo::ZTest::None, false, true, false, boo::CullMode::None);
|
||||
|
|
|
@ -179,6 +179,7 @@ public:
|
|||
if (!smashAdapter)
|
||||
{
|
||||
smashAdapter = std::dynamic_pointer_cast<boo::DolphinSmashAdapter>(tok.openAndGetDevice());
|
||||
if (smashAdapter)
|
||||
smashAdapter->setCallback(&m_dolphinCb);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -36,7 +36,7 @@ void MP1::CActorContraption::Think(float dt, CStateManager& mgr)
|
|||
|
||||
if (act && act->GetActive())
|
||||
{
|
||||
act->SetTransform(act->GetScaledLocatorTransform(uid.second));
|
||||
act->SetTransform(x34_transform * act->GetScaledLocatorTransform(uid.second));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
2
hecl
2
hecl
|
@ -1 +1 @@
|
|||
Subproject commit 104d554f42102390ddcc52fe50832097b78c6c08
|
||||
Subproject commit b25f7f30026b51ae5f3025efbade3d88c933dbe0
|
Loading…
Reference in New Issue