Skip to content

Commit

Permalink
Add shaderlibrary for all platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
Jhonnyg committed Oct 28, 2024
1 parent 78483a4 commit 3fe14cf
Show file tree
Hide file tree
Showing 12 changed files with 5 additions and 0 deletions.
Binary file modified defold-rive/lib/arm64-android/libRiveExt_16.a
Binary file not shown.
Binary file added defold-rive/lib/arm64-android/libriveshaders.a
Binary file not shown.
Binary file added defold-rive/lib/arm64-ios/libRiveExt_16.a
Binary file not shown.
Binary file added defold-rive/lib/arm64-ios/libriveshaders.a
Binary file not shown.
Binary file added defold-rive/lib/arm64-osx/libRiveExt_16.a
Binary file not shown.
Binary file added defold-rive/lib/arm64-osx/libriveshaders.a
Binary file not shown.
Binary file added defold-rive/lib/armv7-android/libriveshaders.a
Binary file not shown.
Binary file added defold-rive/lib/x86_64-ios/libriveshaders.a
Binary file not shown.
Binary file added defold-rive/lib/x86_64-linux/libriveshaders.a
Binary file not shown.
Binary file added defold-rive/lib/x86_64-osx/libriveshaders.a
Binary file not shown.
Binary file added defold-rive/lib/x86_64-win32/riveshaders.lib
Binary file not shown.
5 changes: 5 additions & 0 deletions defold-rive/src/private/renderer_private.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ namespace dmRive
{
if (g_RiveRenderer)
{
ReleaseShadersInternal(g_RiveRenderer->m_Factory);
delete g_RiveRenderer;
g_RiveRenderer = 0;
}
Expand Down Expand Up @@ -180,6 +181,10 @@ namespace dmRive
renderer->m_GraphicsContext = dmGraphics::GetInstalledContext();
renderer->m_RenderContext->SetGraphicsContext(renderer->m_GraphicsContext);
renderer->m_RiveRenderer = renderer->m_RenderContext->MakeRenderer();
renderer->m_Factory = factory;

dmResource::IncRef(factory, (void*) renderer->m_BlitVs);
dmResource::IncRef(factory, (void*) renderer->m_BlitFs);
}

if (!renderer->m_FrameBegin)
Expand Down

0 comments on commit 3fe14cf

Please sign in to comment.