mirror of
https://github.com/libretro/RetroArch
synced 2025-01-31 06:32:48 +00:00
Use correct uniforms when blitting menu frame with Metal
Fixes broken rgui with the Metal video driver.
This commit is contained in:
parent
a52130e368
commit
e6227f9898
@ -83,7 +83,6 @@
|
||||
id<MTLSamplerState> _samplerStateNearest;
|
||||
|
||||
// other state
|
||||
Uniforms _uniforms;
|
||||
Uniforms _viewportMVP;
|
||||
}
|
||||
|
||||
@ -384,8 +383,9 @@
|
||||
|
||||
if (_menu.enabled && _menu.hasFrame)
|
||||
{
|
||||
[rce pushDebugGroup:@"menu frame"];
|
||||
[_menu.view drawWithContext:_context];
|
||||
[rce setVertexBytes:&_uniforms length:sizeof(_uniforms) atIndex:BufferIndexUniforms];
|
||||
[rce setVertexBytes:_context.uniforms length:sizeof(*_context.uniforms) atIndex:BufferIndexUniforms];
|
||||
[rce setRenderPipelineState:_t_pipelineState];
|
||||
if (_menu.view.filter == RTextureFilterNearest)
|
||||
{
|
||||
@ -396,6 +396,7 @@
|
||||
[rce setFragmentSamplerState:_samplerStateLinear atIndex:SamplerIndexDraw];
|
||||
}
|
||||
[_menu.view drawWithEncoder:rce];
|
||||
[rce popDebugGroup];
|
||||
}
|
||||
|
||||
#if defined(HAVE_MENU)
|
||||
|
Loading…
x
Reference in New Issue
Block a user