[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-dev] OpenGL buffering question

From: Rob Savoye
Subject: [Gnash-dev] OpenGL buffering question
Date: Tue, 14 Mar 2006 08:14:23 -0700
User-agent: Thunderbird 1.5 (X11/20051201)

On the assumption there are people on this list that have more OpenGL experience than I do (I don't have much), I have a question. My current working version of the plugin appears to play movies, but instead of the rendered frames, I get the hardcoded triangle/square graphics instead. The odd thing is the code to draw the hard-coded graphic is never executed. It's like it's stuck in the double buffer, and when I swap buffer, I get an older stored image ? Maybe I should check in my current version after a little more cleanup.

I figured out the problem with the player was a mutex locking up. For some odd reason, the mutex as accessed by the player thread was non-functional, although it worked just fine in the plugin thread. I replaced the use of SDL_Mutex with Mozilla's PRLock, and now it works fine. I've been reading through the NSPR API docs, and I think I'm going to completely modify the plugin to use Mozilla's NSPR API for mutexes and threads instead of SDL on the assumption they're better supported within Mozilla.

        - rob -

reply via email to

[Prev in Thread] Current Thread [Next in Thread]