aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSylvain Munaut <tnt@246tNt.com>2015-02-15 20:14:43 +0100
committerSylvain Munaut <tnt@246tNt.com>2015-10-25 21:41:22 +0100
commit38c79bca9cc8d91e11f002072b12f6cb5c86075c (patch)
tree619d65911c0dd3cc33c5f67c61b7d17260be23c1
parent3fdfe7cf812238804f25f5cdfe39f848fd657b33 (diff)
fosphor/gl: Don't require a glFinish()
Since we always call swap buffer between a call to draw and the next call to process(), we don't need it. In the future, make this an option in case there is some usecase that require it. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
-rw-r--r--lib/fosphor/gl.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/fosphor/gl.c b/lib/fosphor/gl.c
index c7f8a30..74f175e 100644
--- a/lib/fosphor/gl.c
+++ b/lib/fosphor/gl.c
@@ -778,7 +778,11 @@ fosphor_gl_draw(struct fosphor *self, struct fosphor_render *render)
}
/* Ensure GL is done */
- glFinish();
+ /* Make this optional. If after the draw we do a swap buffer, we _know_
+ that GL will be done after it
+ Also, if we do multiple draw, then this is completely useless
+ */
+ /* glFinish(); */
}
/*! @} */