From 73dc19fc5869295928198d2132b4e132911341fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Sun, 18 Oct 2020 00:47:12 +0200 Subject: [PATCH] onscreen/native: Remove uselses size check The comment made no sense in the context it was in, and the size check can never fail as we create views directly from mode dimenisons. Part-of: --- src/backends/native/meta-onscreen-native.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/backends/native/meta-onscreen-native.c b/src/backends/native/meta-onscreen-native.c index 1617668ce..d89dd0c08 100644 --- a/src/backends/native/meta-onscreen-native.c +++ b/src/backends/native/meta-onscreen-native.c @@ -2033,15 +2033,8 @@ meta_onscreen_native_allocate (CoglOnscreen *onscreen, EGLStreamKHR egl_stream; #endif - /* If a kms_fd is set then the display width and height - * won't be available until meta_renderer_native_set_layout - * is called. In that case, defer creating the surface - * until then. - */ width = cogl_framebuffer_get_width (framebuffer); height = cogl_framebuffer_get_height (framebuffer); - if (width == 0 || height == 0) - return TRUE; renderer_gpu_data = meta_renderer_native_get_gpu_data (onscreen_native->renderer_native,