Render resource handling for textures
This commit is contained in:
@@ -19,7 +19,7 @@ namespace OpenVulkano::Vulkan
|
||||
ArBackgroundDrawable* bgDrawable = static_cast<ArBackgroundDrawable*>(instance);
|
||||
bgDrawable->Tick();
|
||||
const Texture* texture = bgDrawable->GetTexture();
|
||||
VulkanTexture* vkTexture = static_cast<VulkanTexture*>(texture->renderTexture);
|
||||
VulkanTexture* vkTexture = texture->GetRenderResource();
|
||||
if (!vkTexture)
|
||||
{
|
||||
vkTexture = drawContext->renderer->GetResourceManager().PrepareTexture(const_cast<Texture*>(texture));
|
||||
|
||||
Reference in New Issue
Block a user