1
0
Fork 0

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:
Ray Strode 2015-08-26 17:02:45 -04:00
parent b7707e2139
commit 181176bdb1

View file

@ -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);