Replace String comparisons with "", String() to is_empty()
Also: - Adds two stress tests to test_string.h - Changes to .empty() on std::strings
This commit is contained in:
@ -120,7 +120,7 @@ static Vector<uint8_t> _compile_shader_glsl(RenderingDevice::ShaderStage p_stage
|
||||
preamble += "#define has_VK_KHR_multiview 1\n";
|
||||
}
|
||||
|
||||
if (preamble != "") {
|
||||
if (!preamble.empty()) {
|
||||
shader.setPreamble(preamble.c_str());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user