Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
durswd committed Jul 20, 2023
1 parent e89d299 commit f8393f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dev/Cpp/EffekseerMaterialEditor/Graphics/efkMat.Graphics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -422,8 +422,8 @@ bool Preview::UpdateShader(const CompileResult& compileResult)
auto gd = graphics_->GetGraphicsDevice().DownCast<EffekseerRendererGL::Backend::GraphicsDevice>();
auto vl = EffekseerRenderer::GetMaterialModelVertexLayout(graphics_->GetGraphicsDevice()).DownCast<Effekseer::Backend::VertexLayout>();

auto compiler = Effekseer::MaterialCompilerGL();
auto binary = compiler.Compile(compileResult.materialFile.get());
auto compiler = Effekseer::MakeRefPtr<Effekseer::MaterialCompilerGL>();
auto binary = compiler->Compile(compileResult.materialFile.get());

auto parameterGenerator = EffekseerRenderer::MaterialShaderParameterGenerator(*compileResult.materialFile, true, 0, 10);
Effekseer::CustomVector<Effekseer::Backend::UniformLayoutElement> uniformLayoutElements;
Expand Down

0 comments on commit f8393f6

Please sign in to comment.