[cogl] kms-winsys: Mark the framebuffer to be bound when setting a new layout
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl] kms-winsys: Mark the framebuffer to be bound when setting a new layout
- Date: Fri, 30 Jan 2015 15:21:20 +0000 (UTC)
commit b9d6cf45eb3f4bfad9562178f3acaecc9483a5f1
Author: Rui Matos <tiagomatos gmail com>
Date: Wed Jan 21 21:43:02 2015 +0100
kms-winsys: Mark the framebuffer to be bound when setting a new layout
We need to bind the context to the new EGL surface we just created.
https://bugzilla.gnome.org/show_bug.cgi?id=741881
cogl/winsys/cogl-winsys-egl-kms.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/cogl/winsys/cogl-winsys-egl-kms.c b/cogl/winsys/cogl-winsys-egl-kms.c
index c70f5c1..2be1629 100644
--- a/cogl/winsys/cogl-winsys-egl-kms.c
+++ b/cogl/winsys/cogl-winsys-egl-kms.c
@@ -1171,6 +1171,7 @@ cogl_kms_display_set_layout (CoglDisplay *display,
height != kms_display->height) &&
kms_display->onscreen)
{
+ CoglContext *context = COGL_FRAMEBUFFER (kms_display->onscreen)->context;
CoglOnscreenEGL *egl_onscreen = kms_display->onscreen->winsys;
CoglOnscreenKMS *kms_onscreen = egl_onscreen->platform;
struct gbm_surface *new_surface;
@@ -1213,6 +1214,7 @@ cogl_kms_display_set_layout (CoglDisplay *display,
egl_onscreen->egl_surface = new_egl_surface;
_cogl_framebuffer_winsys_update_size (COGL_FRAMEBUFFER (kms_display->onscreen), width, height);
+ context->current_draw_buffer_changes |= COGL_FRAMEBUFFER_STATE_BIND;
}
kms_display->width = width;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]