Commit d16deb71 authored by Paul McCarthy's avatar Paul McCarthy
Browse files

Hack to fix movie mode on other GL drivers. I will revisit this in the future.

parent 078f586b
......@@ -18,7 +18,7 @@ also defined here, for working with FSLeyes version numbers.
"""
__version__ = '0.10.1b'
__version__ = '0.10.1c'
"""Current version number, as a string. The FSLeyes version number consists
of three numbers, separated by a period, which roughly obeys the Semantic
Versioning conventions (http://semver.org/):
......
......@@ -811,7 +811,14 @@ class CanvasPanel(viewpanel.ViewPanel):
# with separate renders/buffer swaps, so we
# have to use a shitty unsynchronised update
# routine.
useSync = 'gallium' not in fslplatform.glRenderer.lower()
#
# TODO Ideally, figure out a refresh
# regime that works across all
# drivers. Failing this, make
# this switch user controllable.
renderer = fslplatform.glRenderer.lower()
unsyncRenderers = ['gallium', 'mesa dri intel(r)']
useSync = not any([r in renderer for r in unsyncRenderers])
if useSync: update = self.__syncMovieRefresh
else: update = self.__unsyncMovieRefresh
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment