mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-14 03:16:40 +00:00
parent
793f38b9aa
commit
0202f150d4
2 changed files with 3 additions and 5 deletions
|
@ -193,9 +193,9 @@ namespace Ryujinx.Graphics.OpenGL
|
||||||
switch (mode)
|
switch (mode)
|
||||||
{
|
{
|
||||||
case DepthStencilMode.Depth:
|
case DepthStencilMode.Depth:
|
||||||
return All.Depth;
|
return All.DepthComponent;
|
||||||
case DepthStencilMode.Stencil:
|
case DepthStencilMode.Stencil:
|
||||||
return All.Stencil;
|
return All.StencilIndex;
|
||||||
}
|
}
|
||||||
|
|
||||||
Logger.PrintDebug(LogClass.Gpu, $"Invalid {nameof(DepthStencilMode)} enum value: {mode}.");
|
Logger.PrintDebug(LogClass.Gpu, $"Invalid {nameof(DepthStencilMode)} enum value: {mode}.");
|
||||||
|
|
|
@ -100,9 +100,7 @@ namespace Ryujinx.Graphics.OpenGL
|
||||||
}
|
}
|
||||||
|
|
||||||
GL.TexParameter(target, TextureParameterName.TextureMaxLevel, maxLevel);
|
GL.TexParameter(target, TextureParameterName.TextureMaxLevel, maxLevel);
|
||||||
|
GL.TexParameter(target, TextureParameterName.DepthStencilTextureMode, (int)_info.DepthStencilMode.Convert());
|
||||||
// TODO: This requires ARB_stencil_texturing, we should uncomment and test this.
|
|
||||||
// GL.TexParameter(target, TextureParameterName.DepthStencilTextureMode, (int)_info.DepthStencilMode.Convert());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public ITexture CreateView(TextureCreateInfo info, int firstLayer, int firstLevel)
|
public ITexture CreateView(TextureCreateInfo info, int firstLayer, int firstLevel)
|
||||||
|
|
Loading…
Reference in a new issue