mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 09:30:45 -05:00
kms-winsys: use correct surface format
gbm confusingly has two different format types, and cogl is using the wrong one in some of its calls to gbm_surface_create This commit fixes the calls that are wrong. https://bugzilla.gnome.org/show_bug.cgi?id=754540
This commit is contained in:
parent
b7707e2139
commit
181176bdb1
@ -1029,7 +1029,7 @@ _cogl_winsys_onscreen_init (CoglOnscreen *onscreen,
|
||||
gbm_surface_create (kms_renderer->gbm,
|
||||
kms_display->width,
|
||||
kms_display->height,
|
||||
GBM_BO_FORMAT_XRGB8888,
|
||||
GBM_FORMAT_XRGB8888,
|
||||
GBM_BO_USE_SCANOUT |
|
||||
GBM_BO_USE_RENDERING);
|
||||
|
||||
@ -1229,7 +1229,7 @@ cogl_kms_display_set_layout (CoglDisplay *display,
|
||||
|
||||
new_surface = gbm_surface_create (kms_renderer->gbm,
|
||||
width, height,
|
||||
GBM_BO_FORMAT_XRGB8888,
|
||||
GBM_FORMAT_XRGB8888,
|
||||
GBM_BO_USE_SCANOUT |
|
||||
GBM_BO_USE_RENDERING);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user