You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 13:10:58 +00:00
Vulkan: Don't warn about pipelines cache if missing
It used to warn when opening a new project because no cache pre-exists, which isn't particularly helpful. Also include the rendering method in the cache filename, as it differs between Forward+ and Mobile for a same GPU.
This commit is contained in:
@@ -3828,7 +3828,9 @@ bool RenderingDeviceDriverVulkan::pipeline_cache_create(const Vector<uint8_t> &p
|
||||
|
||||
// Parse.
|
||||
{
|
||||
if (p_data.size() <= (int)sizeof(PipelineCacheHeader)) {
|
||||
if (p_data.is_empty()) {
|
||||
// No pre-existing cache, just create it.
|
||||
} else if (p_data.size() <= (int)sizeof(PipelineCacheHeader)) {
|
||||
WARN_PRINT("Invalid/corrupt pipelines cache.");
|
||||
} else {
|
||||
const PipelineCacheHeader *loaded_header = reinterpret_cast<const PipelineCacheHeader *>(p_data.ptr());
|
||||
|
||||
Reference in New Issue
Block a user