mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-11 01:25:07 +02:00
TextureCacheVulkan: Add a sanity check
This commit is contained in:
@@ -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