Skip to content

Commit

Permalink
follow what the docs say: Instances of this class are hashable, and t…
Browse files Browse the repository at this point in the history
…wo instances of this class may be compared using “==” and ”!=”.

git-svn-id: https://xpra.org/svn/Xpra/trunk@5155 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Jan 9, 2014
1 parent 78a4c60 commit 812f8cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/xpra/codecs/csc_opencl/colorspace_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -573,11 +573,11 @@ def convert_image(self, image, retry=0):
global context, program
if self.do_convert_image==None:
raise Exception("not initialized!")
if self.context is not context:
if self.context!=context:
debug("old context=%s, new context=%s", self.context, context)
log.info("using new OpenCL context (context changed)")
self.init_with_device()
elif self.program is not program:
elif self.program!=program:
debug("old program=%s, new program=%s", self.program, program)
log.info("using new OpenCL context (program changed)")
self.init_with_device()
Expand Down

0 comments on commit 812f8cc

Please sign in to comment.