uterm: video: return -EOPNOTSUPP when opengl is not supported
When the backend does not implement display_use() then we return an error instead of success to notify the application that it should use blitting instead. Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
This commit is contained in:
parent
59f4e84519
commit
0ca1256ed5
@ -123,7 +123,7 @@ int uterm_screen_use(struct uterm_screen *screen)
|
||||
if (!screen || !display_is_online(screen->disp))
|
||||
return -EINVAL;
|
||||
|
||||
return VIDEO_CALL(screen->disp->ops->use, 0, screen->disp);
|
||||
return VIDEO_CALL(screen->disp->ops->use, -EOPNOTSUPP, screen->disp);
|
||||
}
|
||||
|
||||
int uterm_screen_swap(struct uterm_screen *screen)
|
||||
|
Loading…
x
Reference in New Issue
Block a user