Fix a crash

This commit is contained in:
Lior Halphon 2020-03-27 17:22:50 +03:00
parent 4cb56dc76f
commit 588c0734a9
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@
- (GB_frame_blending_mode_t)frameBlendingMode
{
if (_frameBlendingMode == GB_FRAME_BLENDING_MODE_ACCURATE) {
if (GB_is_sgb(_gb)) {
if (!_gb || GB_is_sgb(_gb)) {
return GB_FRAME_BLENDING_MODE_SIMPLE;
}
return GB_is_odd_frame(_gb)? GB_FRAME_BLENDING_MODE_ACCURATE_ODD : GB_FRAME_BLENDING_MODE_ACCURATE_EVEN;