diff options
Diffstat (limited to 'camera.py')
-rwxr-xr-x | camera.py | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -104,7 +104,7 @@ class Camera(Thread): self.xyz_lookup1_gpu = gpuarray.zeros(len(self.geometry.mesh.triangles), dtype=gpuarray.vec.float3) self.xyz_lookup2_gpu = gpuarray.zeros(len(self.geometry.mesh.triangles), dtype=gpuarray.vec.float3) self.image_gpu = gpuarray.zeros(self.width*self.height, dtype=gpuarray.vec.float3) - self.context.synchronize() + self.gpu.context.synchronize() self.source_position = self.point @@ -382,8 +382,6 @@ class Camera(Thread): self.done = False self.clicked = False - #shift = False - #ctrl = False #current_layer = 0 @@ -416,7 +414,6 @@ class EventViewer(Camera): self.T = self.f.Get('T') self.T.GetEntry(0) - #@timeit def color_hit_pmts(self): self.gpu.reset_colors() |