From 484f2c5954c68c373ff46c3b299983cf124ac206 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Tue, 25 Apr 2023 23:02:12 +0200 Subject: [PATCH] Fix texcoord issue with SOCOM post effect --- Core/HLE/sceKernelModule.cpp | 2 +- GPU/Common/TextureCacheCommon.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Core/HLE/sceKernelModule.cpp b/Core/HLE/sceKernelModule.cpp index 5bcc701393..e52176a9b1 100644 --- a/Core/HLE/sceKernelModule.cpp +++ b/Core/HLE/sceKernelModule.cpp @@ -2613,7 +2613,7 @@ static SceUID sceKernelLoadModuleBufferUsbWlan(u32 size, u32 bufPtr, u32 flags, static u32 sceKernelQueryModuleInfo(u32 uid, u32 infoAddr) { - INFO_LOG(SCEMODULE, "sceKernelQueryModuleInfo(%i, %08x)", uid, infoAddr); + DEBUG_LOG(SCEMODULE, "sceKernelQueryModuleInfo(%i, %08x)", uid, infoAddr); u32 error; PSPModule *module = kernelObjects.Get(uid, error); if (!module) diff --git a/GPU/Common/TextureCacheCommon.cpp b/GPU/Common/TextureCacheCommon.cpp index e483248e7f..aecd7c470d 100644 --- a/GPU/Common/TextureCacheCommon.cpp +++ b/GPU/Common/TextureCacheCommon.cpp @@ -2315,9 +2315,9 @@ void TextureCacheCommon::ApplyTextureFramebuffer(VirtualFramebuffer *framebuffer bool needsDepthXSwizzle = depthUpperBits == 2; int depalWidth = framebuffer->renderWidth; - int texWidth = framebuffer->width; + int texWidth = framebuffer->bufferWidth; if (needsDepthXSwizzle) { - texWidth = RoundUpToPowerOf2(framebuffer->width); + texWidth = RoundUpToPowerOf2(framebuffer->bufferWidth); depalWidth = texWidth * framebuffer->renderScaleFactor; gstate_c.Dirty(DIRTY_UVSCALEOFFSET); }