Optimization and tweaks
This commit is contained in:
@@ -39,7 +39,12 @@ bool GPUParticles::Init(ParticleEmitter* owner, MemoryReadStream& shaderCacheStr
|
||||
|
||||
// Load shader
|
||||
ASSERT(GPUDevice::Instance);
|
||||
_shader = GPUDevice::Instance->CreateShader(owner->GetPath());
|
||||
#if GPU_ENABLE_RESOURCE_NAMING
|
||||
const StringView name(owner->GetPath());
|
||||
#else
|
||||
const StringView name;
|
||||
#endif
|
||||
_shader = GPUDevice::Instance->CreateShader(name);
|
||||
if (_shader->Create(shaderCacheStream))
|
||||
{
|
||||
LOG(Warning, "Failed to load shader.");
|
||||
|
||||
Reference in New Issue
Block a user