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

Reimar Döffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Sun Feb 18 20:15:11 CET 2007


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?
In that case it can happen that it is later impossible to use OpenGL
with that window...

Greetings,
Reimar Döffinger



More information about the MPlayer-users mailing list