diff --git a/UnleashedRecomp/patches/video_patches.cpp b/UnleashedRecomp/patches/video_patches.cpp index 01dff102..39a9e48d 100644 --- a/UnleashedRecomp/patches/video_patches.cpp +++ b/UnleashedRecomp/patches/video_patches.cpp @@ -68,3 +68,16 @@ bool MotionBlurMidAsmHook() { return Config::MotionBlur != EMotionBlur::Off; } + +// Hedgehog::MirageDebug::PrepareRenderPrimitive2D +PPC_FUNC_IMPL(__imp__sub_830D25D8); +PPC_FUNC(sub_830D25D8) +{ + auto device = reinterpret_cast(base + PPC_LOAD_U32(ctx.r4.u32)); + + // Set first sampler to use linear filtering. + device->samplerStates[0].data[3] = (device->samplerStates[0].data[3].get() & ~0x1f80000) | 0x1280000; + device->dirtyFlags[3] = device->dirtyFlags[3].get() | 0x80000000ull; + + __imp__sub_830D25D8(ctx, base); +}