onscreen/native: Replace an assertion that double buffering is the maximum
Because it soon won't be the maximum. But we do want to verify that the frame info queue is not empty, to avoid NULL dereferencing and catch logic errors.
This commit is contained in:
parent
c25bcd5477
commit
91453c1b88
1 changed files with 1 additions and 1 deletions
|
@ -207,7 +207,7 @@ meta_onscreen_native_notify_frame_complete (CoglOnscreen *onscreen)
|
||||||
|
|
||||||
info = cogl_onscreen_pop_head_frame_info (onscreen);
|
info = cogl_onscreen_pop_head_frame_info (onscreen);
|
||||||
|
|
||||||
g_assert (!cogl_onscreen_peek_head_frame_info (onscreen));
|
g_return_if_fail (info);
|
||||||
|
|
||||||
_cogl_onscreen_notify_frame_sync (onscreen, info);
|
_cogl_onscreen_notify_frame_sync (onscreen, info);
|
||||||
_cogl_onscreen_notify_complete (onscreen, info);
|
_cogl_onscreen_notify_complete (onscreen, info);
|
||||||
|
|
Loading…
Reference in a new issue