mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 11:32:04 +00:00
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: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1514>
This commit is contained in:
parent
f60943afc9
commit
73dc19fc58
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user