Fixed weird fmod bug I guess

This commit is contained in:
2023-04-05 22:13:24 -07:00
parent b5707ed888
commit 54d21397e1
8 changed files with 16 additions and 12 deletions

View File

@ -8,6 +8,7 @@
using namespace Dawn;
ShaderManager::ShaderManager() {
this->nextId = 0;
this->nextLock = 0;
}

View File

@ -59,7 +59,7 @@ namespace Dawn {
shaderId = shader->shaderId;
}
shaderlock_t lock = this->nextId++;
shaderlock_t lock = this->nextLock++;
this->shaderLocks[lock] = shaderId;
this->shaderLocksByShader[shaderId].push_back(lock);
return lock;