[MPlayer-users] gl/g2 don't work well with -wid in windows

Pepe rvm3000 at ya.com
Sun Feb 18 20:47:41 CET 2007


El Domingo, 18 de Febrero de 2007 20:15, Reimar Döffinger escribió:
> Hello,
>
> On Sun, Feb 18, 2007 at 06:19:22PM +0100, Pepe wrote:
> > El Domingo, 18 de Febrero de 2007 15:32, Reimar Döffinger escribió:
> > > On Sat, Feb 17, 2007 at 06:17:10PM +0100, Pepe wrote:
> > > > The manpage says that the option -wid works with X11, OpenGL and
> > > > DirectX (it seems it works too with xv).
> > > >
> > > > I'm developing smplayer, which works both in linux and windows. I use
> > > > the option -wid to embed mplayer in my application. Under Windows it
> > > > works well with directx (and directx:noaccel) but not with gl or gl2.
> > > >
> > > > The problem is that when I resize the window some strange things
> > > > appear. See screenshot:
> > > > http://www.uploadfile.info/uploads/c0ec0c871e.jpg
> > >
> > > With the smplayer versions I could find it does not work at all,
> > > MPlayer can't create an OpenGL context...
>
> [...]
>
> > I think that in this version gl/gl2 works (showing the problem
> > mentioned).
>
> It does not for me, and not with MPUI either.
> Maybe you both do not call SetPixelFormat with a format that has
> PFD_SUPPORT_OPENGL before drawing into the hdc?

No I don't. I didn't know I had to do this.
I'll try to fix it.

-- 
Pepe



More information about the MPlayer-users mailing list