Implemented KRSampler::createSamplers

This commit is contained in:
2022-08-30 00:18:47 -07:00
parent 0e5fee2d80
commit 6682cbdedd
4 changed files with 39 additions and 7 deletions

View File

@@ -98,7 +98,8 @@ KRSampler* KRSamplerManager::getSampler(const SamplerInfo& info)
if (itr != m_samplers.end()) {
return itr->second;
}
KRSampler* sampler = new KRSampler(getContext(), info);
KRSampler* sampler = new KRSampler(getContext());
sampler->createSamplers(info);
m_samplers[info] = sampler;
return sampler;
}