[GtkGLExt] Re: Help, maybe a bug in FreeBSD 5.3! (mk mk)



Hi, 

Problem has been fixed! It annoyed me serveral days.
Two issues should be noted. 

The first one is that the demo should be linked with
gthread-2.0 (default is xthread under FreeBSD5.3 +
Gnome2.6), or it will behave wired when resize the gl
window. 

The second one is that function
gdk_gl_drawable_make_current or
gdk_gl_drawable_gl_begin should be called only once
(the best place is in gl widget realize event
handler).  Otherwise, any following glXMakeCurrent
call which implicit called by the above two function
will be failed.

Thanks.

qxb 
> I tried another laptop with the same installation
> and
> the problem remained. 
> Moreover, I tried to install another GtkGL binding
> (GtkGLArea), and the example with GtkGLArea cannot
> run
> either. It says "BadMatch" with X error code 8. Look
> into the manual, I suspect it maybe due to the
> parameter mismatch between GLDrawable and
> GLXContext.
> How can I fix it? 
> 
> Any suggestion will be welcome.
> 
> qxb
>   
> > Hello, everyone:
> > 
> > Now I face a problem using latest port of
> > gtkglext-1.0.6 in
> > FreeBSD 5.3 release. The problem is I can not
> > correctly run any example programs. I got
> following
> > errors, e.g:
> > 
> > (gears:10449): GdkGLExt-WARNING **:
> glXMakeCurrent()
> > failed
> > 
> > The program started normally but the GL drawing
> area
> > is blank. and whenever the window need refresh,
> the
> > above error showed in the console. My graphic card
> > is
> > Trident 9397DVD and the system is FreeBSD5.3 +
> Xorg
> > +
> > Gnome2.6 (which is the default installation)
> > 
> > This is *not* the problem of OpenGL library of
> X11,
> > since I can run the 'glxgears' demo successfully.
> > So I guess this maybe due to the bug of gtkglext
> > 
> > Thanks a lot
> > 
> 
> 
>
_________________________________________________________
> Do You Yahoo!?
> 150万曲MP3疯狂搜,带您闯入音乐殿堂
> http://music.yisou.com/
> 美女明星应有尽有,搜遍美图、艳图和酷图
> http://image.yisou.com
> 1G就是1000兆,雅虎电邮自助扩容!
>
http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mail_1g/
>  

_________________________________________________________
Do You Yahoo!?
150万曲MP3疯狂搜,带您闯入音乐殿堂
http://music.yisou.com/
美女明星应有尽有,搜遍美图、艳图和酷图
http://image.yisou.com
1G就是1000兆,雅虎电邮自助扩容!
http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mail_1g/



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