Check dst for Texture3D rather than src.

This commit is contained in:
riperiperi 2020-02-29 18:27:19 +00:00
parent d52e470c08
commit b604e045c6

View file

@ -22,7 +22,7 @@ namespace Ryujinx.Graphics.OpenGL
dstWidth = Math.Max(1, dstWidth >> dstLevel);
dstHeight = Math.Max(1, dstHeight >> dstLevel);
if (src.Target == Target.Texture3D)
if (dst.Target == Target.Texture3D)
{
dstDepth = Math.Max(1, dstDepth >> dstLevel);
}