mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2025-08-04 03:02:24 -07:00
Fix present
This commit is contained in:
committed by
Isaac Marovitz
parent
fbe275204b
commit
45b533b23b
@@ -158,7 +158,11 @@ namespace Ryujinx.Graphics.Metal
|
||||
|
||||
_encoderStateManager.SwapStates();
|
||||
|
||||
// _helperShader.BlitColor(tex, drawable.Texture);
|
||||
// TODO: Clean this up
|
||||
var textureInfo = new TextureCreateInfo((int)drawable.Texture.Width, (int)drawable.Texture.Height, (int)drawable.Texture.Depth, (int)drawable.Texture.MipmapLevelCount, (int)drawable.Texture.SampleCount, 0, 0, 0, Format.B8G8R8A8Unorm, 0, Target.Texture2D, SwizzleComponent.Red, SwizzleComponent.Green, SwizzleComponent.Blue, SwizzleComponent.Alpha);
|
||||
var dest = new Texture(_device, this, textureInfo, drawable.Texture, 0, 0);
|
||||
|
||||
_helperShader.BlitColor(tex, dest);
|
||||
|
||||
_commandBuffer.PresentDrawable(drawable);
|
||||
_commandBuffer.Commit();
|
||||
|
Reference in New Issue
Block a user