TextureCacheVulkan: Add a sanity check

This commit is contained in:
Henrik Rydgård committed 2025-05-25 11:22:05 +02:00
1 parent 8f10666ba8
commit 84d180bdfe
1 file changed
+5
+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_) {