mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-30 19:24:23 +01:00
TextureCacheVulkan: Add a sanity check
This commit is contained in:
1 parent
8f10666ba8
commit
84d180bdfe
1 file changed
+5
@@ -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_) {
|
||||
|
||||
Reference in new issue
Block a user