Cleanup: unused variable warning, formatting

This commit is contained in:
Campbell Barton 2022-01-26 16:01:11 +11:00
parent 37e555d2fe
commit 94d2a611ec
2 changed files with 4 additions and 1 deletions

View File

@ -423,7 +423,7 @@ static void detect_workarounds()
/* Buggy interface query functions cause crashes when handling SSBOs (T93680) */
if (GPU_type_matches(GPU_DEVICE_INTEL, GPU_OS_ANY, GPU_DRIVER_ANY) &&
(strstr(renderer, "HD Graphics 4400")|| strstr(renderer, "HD Graphics 4600"))) {
(strstr(renderer, "HD Graphics 4400") || strstr(renderer, "HD Graphics 4600"))) {
GCaps.shader_storage_buffer_objects_support = false;
}
} // namespace blender::gpu

View File

@ -1446,7 +1446,10 @@ IndexBuildContext *IMB_anim_index_rebuild_context(struct anim *anim,
context = index_ffmpeg_create_context(
anim, tcs_in_use, proxy_sizes_to_build, quality, build_only_on_bad_performance);
break;
#else
UNUSED_VARS(build_only_on_bad_performance);
#endif
#ifdef WITH_AVI
default:
context = index_fallback_create_context(anim, tcs_in_use, proxy_sizes_to_build, quality);