Forwarding to PyOpenGL Users on behalf of Derakon ;)

Alejandro.-

---------- Forwarded message ----------
From: Derakon <derakon@gmail.com>
Date: Mon, May 23, 2011 at 4:30 PM
Subject: Re: [PyOpenGL-Users] Works on OSX, fails on Linux
To: Alejandro Segovia <asegovi@gmail.com>


On Mon, May 23, 2011 at 12:22 PM, Alejandro Segovia <asegovi@gmail.com> wrote:
> Hi Derakon,
> On Mon, May 23, 2011 at 4:04 PM, Mike C. Fletcher <mcfletch@vrplumber.com>
> wrote:
>>
>> I'm pretty sure the problem is that you haven't properly bound your
>> texture for the refresh and as a result you are seeing an error due to
>> e.g. alignment or similar issues pushing your image parameters into
>> invalid territory.
>
> I subscribe to Mike's comments. In line 159 you are forgetting to call
> image.bindTexture() before calling image.refresh(). This might not be what
> you intended.

Yeah, this was the fix. Thanks, guys!

I found that the the assertion errors I was getting earlier had
something to do with my multithreaded viewer-update code. In normal
use the program has three separate windows showing different views of
a dataset; when the dataset updates I have to update all three
viewers, which I was doing in three separate threads. I guess
something about that isn't quite threadsafe, since while it worked
fine on OSX I had to revert to a sequential update for the Linux port.

Anyway, it's working now!

-Chris



--
http://alejandrosegovia.net