Reject 2d layers of non textures in 2d copy engine
This commit is contained in:
parent
d7da8758db
commit
e4e08e6c67
1 changed files with 3 additions and 2 deletions
|
@ -81,10 +81,11 @@ namespace Ryujinx.Graphics
|
||||||
{
|
{
|
||||||
ImageType Type = ImageTypes[Position];
|
ImageType Type = ImageTypes[Position];
|
||||||
|
|
||||||
// FIXME(thog): I'm actually unsure if we should allow other image type, gpu testing needs to be done here.
|
// FIXME(thog): I'm actually unsure if we should deny all other image type, gpu testing needs to be done here.
|
||||||
if (Type != ImageType.Texture && Type != ImageType.TextureArrayLayer)
|
if (Type != ImageType.Texture && Type != ImageType.TextureArrayLayer)
|
||||||
{
|
{
|
||||||
Logger.PrintWarning(LogClass.Gpu, $"Possible invalid layer type detected! (ImageType.{Type})");
|
LayerIndex = -1;
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue