From c7612816e63ad568835c16c06dd92656c80ccea9 Mon Sep 17 00:00:00 2001
From: Paul McCarthy <pauld.mccarthy@gmail.com>
Date: Wed, 30 Mar 2016 11:13:43 +0100
Subject: [PATCH] GLLabel was not setting initial ImageTexture resolution.

---
 fsl/fsleyes/gl/gllabel.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/fsl/fsleyes/gl/gllabel.py b/fsl/fsleyes/gl/gllabel.py
index f976fd984..48a0bf0c1 100644
--- a/fsl/fsleyes/gl/gllabel.py
+++ b/fsl/fsleyes/gl/gllabel.py
@@ -140,7 +140,8 @@ class GLLabel(globject.GLImageObject):
             
         def imageUpdate(*a):
             self.imageTexture.set(volume=opts.volume,
-                                  resolution=opts.resolution)
+                                  resolution=opts.resolution,
+                                  notify=False)
 
             async.wait([self.imageTexture.refreshThread()], shaderUpdate)
 
@@ -233,7 +234,8 @@ class GLLabel(globject.GLImageObject):
             texName,
             self.image,
             notify=False,
-            volume=opts.volume)
+            volume=opts.volume,
+            resolution=opts.resolution)
         
         self.imageTexture.register(self.name, self.__imageTextureChanged)
 
-- 
GitLab