Return INVALID_ID when driver_id is invalid.
Return INVALID_ID when driver_id is invalid.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user