More crash fixes, restore Metal support
This commit is contained in:
parent
588c0734a9
commit
876b36ac1c
@ -13,12 +13,14 @@
|
|||||||
double scale = self.window.backingScaleFactor;
|
double scale = self.window.backingScaleFactor;
|
||||||
glViewport(0, 0, self.bounds.size.width * scale, self.bounds.size.height * scale);
|
glViewport(0, 0, self.bounds.size.width * scale, self.bounds.size.height * scale);
|
||||||
|
|
||||||
|
if (gbview.gb) {
|
||||||
[self.shader renderBitmap:gbview.currentBuffer
|
[self.shader renderBitmap:gbview.currentBuffer
|
||||||
previous:gbview.frameBlendingMode? gbview.previousBuffer : NULL
|
previous:gbview.frameBlendingMode? gbview.previousBuffer : NULL
|
||||||
sized:NSMakeSize(GB_get_screen_width(gbview.gb), GB_get_screen_height(gbview.gb))
|
sized:NSMakeSize(GB_get_screen_width(gbview.gb), GB_get_screen_height(gbview.gb))
|
||||||
inSize:self.bounds.size
|
inSize:self.bounds.size
|
||||||
scale:scale
|
scale:scale
|
||||||
withBlendingMode:gbview.frameBlendingMode];
|
withBlendingMode:gbview.frameBlendingMode];
|
||||||
|
}
|
||||||
glFlush();
|
glFlush();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@ static const vector_float2 rect[] =
|
|||||||
+ (bool)isSupported
|
+ (bool)isSupported
|
||||||
{
|
{
|
||||||
if (MTLCopyAllDevices) {
|
if (MTLCopyAllDevices) {
|
||||||
return false; //[MTLCopyAllDevices() count];
|
return [MTLCopyAllDevices() count];
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user