Return INVALID_ID when driver_id is invalid.

Return INVALID_ID when driver_id is invalid.
This commit is contained in:
Will
2026-06-18 14:10:03 +02:00
parent 5b4e0cb0fd
commit a720176019
+1 -1
View File
@@ -3914,7 +3914,7 @@ RenderingDevice::VertexFormatID RenderingDevice::vertex_format_create(const Vect
}
RDD::VertexFormatID driver_id = driver->vertex_format_create(vertex_descriptions, bindings);
ERR_FAIL_COND_V(!driver_id, 0);
ERR_FAIL_COND_V(!driver_id, INVALID_ID);
VertexFormatID id = (vertex_format_cache.size() | ((int64_t)ID_TYPE_VERTEX_FORMAT << ID_BASE_SHIFT));
vertex_format_cache[key] = id;