This commit is contained in:
twinaphex 2020-09-14 21:50:51 +02:00
parent 13e553a34b
commit 6bac58b902

View File

@ -285,8 +285,6 @@ static char **waiting_argv;
if (vt == _vt)
return;
RARCH_LOG("[Cocoa]: change view type: %d ? %d\n", _vt, vt);
_vt = vt;
if (_renderView != nil)
{
@ -297,7 +295,8 @@ static char **waiting_argv;
_renderView = nil;
}
switch (vt) {
switch (vt)
{
case APPLE_VIEW_TYPE_VULKAN:
case APPLE_VIEW_TYPE_METAL:
{
@ -309,10 +308,8 @@ static char **waiting_argv;
break;
case APPLE_VIEW_TYPE_OPENGL:
{
_renderView = [CocoaView get];
break;
}
case APPLE_VIEW_TYPE_NONE:
default: