gpu: fix memory type selection;

When a fallback memory type is found, don't skip the check for a perfect
match.
This commit is contained in:
bjorn 2022-11-06 11:19:33 -08:00
parent d36a6a22d9
commit c021fc40ef
1 changed files with 0 additions and 1 deletions

View File

@ -2117,7 +2117,6 @@ bool gpu_init(gpu_config* config) {
if ((memoryTypes[j].propertyFlags & fallback) == fallback) {
allocator->memoryFlags = memoryTypes[j].propertyFlags;
allocator->memoryType = j;
continue;
}
if ((memoryTypes[j].propertyFlags & bufferFlags[i].flags) == bufferFlags[i].flags) {