mirror of https://github.com/bjornbytes/lovr.git
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:
parent
d36a6a22d9
commit
c021fc40ef
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue