TextureCacheVulkan: Add a sanity check

This commit is contained in:
Henrik Rydgård
2025-05-20 17:24:03 +02:00
parent 8f10666ba8
commit 84d180bdfe
+5
View File
@@ -270,6 +270,11 @@ static std::string ReadShaderSrc(const Path &filename) {
}
void TextureCacheVulkan::CompileScalingShader() {
if (!draw_) {
// Something is very wrong.
return;
}
VulkanContext *vulkan = (VulkanContext *)draw_->GetNativeObject(Draw::NativeObject::CONTEXT);
if (!g_Config.bTexHardwareScaling || g_Config.sTextureShaderName != textureShader_) {