summaryrefslogtreecommitdiff
path: root/hw/kdrive/ephyr/ephyr_glamor_glx.c
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2016-02-01 13:58:15 -0800
committerAdam Jackson <ajax@redhat.com>2016-03-10 11:12:43 -0500
commitc01094c5312fbd84146dd83122e5256a8e57d092 (patch)
tree4e966ea2e265869fb12636dff850053bdceefce5 /hw/kdrive/ephyr/ephyr_glamor_glx.c
parent0b4c0c75d06f3dbe92be1a26a637e9f05529cb3d (diff)
ephyr: Fix redisplay with glamor on GLES.
glamor_transfer.c is still totally broken, though. Reviewed-by: Adam Jackson <ajax@redhat.com> Signed-off-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'hw/kdrive/ephyr/ephyr_glamor_glx.c')
-rw-r--r--hw/kdrive/ephyr/ephyr_glamor_glx.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/hw/kdrive/ephyr/ephyr_glamor_glx.c b/hw/kdrive/ephyr/ephyr_glamor_glx.c
index 636150d6a..2f219141e 100644
--- a/hw/kdrive/ephyr/ephyr_glamor_glx.c
+++ b/hw/kdrive/ephyr/ephyr_glamor_glx.c
@@ -225,8 +225,10 @@ ephyr_glamor_damage_redisplay(struct ephyr_glamor *glamor,
if (glamor->vao) {
glGetIntegerv(GL_VERTEX_ARRAY_BINDING, &old_vao);
glBindVertexArray(glamor->vao);
- } else
+ } else {
+ glBindBuffer(GL_ARRAY_BUFFER, glamor->vbo);
ephyr_glamor_set_vertices(glamor);
+ }
glBindFramebuffer(GL_FRAMEBUFFER, 0);
glUseProgram(glamor->texture_shader);