Fix intel view copy workaround. (#2216)
The texture target must be taken from the storage rather than the view, when using the storage handle for the copy.
This commit is contained in:
parent
dc8c781d7a
commit
38be18ef2a
4 changed files with 9 additions and 9 deletions
|
@ -208,14 +208,14 @@ namespace Ryujinx.Graphics.OpenGL.Image
|
|||
if (HwCapabilities.Vendor == HwCapabilities.GpuVendor.Intel)
|
||||
{
|
||||
GL.CopyImageSubData(
|
||||
src.StorageHandle,
|
||||
srcInfo.Target.ConvertToImageTarget(),
|
||||
src.Storage.Handle,
|
||||
src.Storage.Info.Target.ConvertToImageTarget(),
|
||||
src.FirstLevel + srcLevel + level,
|
||||
0,
|
||||
0,
|
||||
src.FirstLayer + srcLayer,
|
||||
dst.StorageHandle,
|
||||
dstInfo.Target.ConvertToImageTarget(),
|
||||
dst.Storage.Handle,
|
||||
dst.Storage.Info.Target.ConvertToImageTarget(),
|
||||
dst.FirstLevel + dstLevel + level,
|
||||
0,
|
||||
0,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue