From owner-freebsd-x11@FreeBSD.ORG Thu May 14 15:26:57 2009 Return-Path: Delivered-To: x11@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B4E881065675 for ; Thu, 14 May 2009 15:26:57 +0000 (UTC) (envelope-from oliver@FreeBSD.org) Received: from avocado.salatschuessel.net (avocado.salatschuessel.net [78.111.72.186]) by mx1.freebsd.org (Postfix) with SMTP id 1FBF98FC16 for ; Thu, 14 May 2009 15:26:56 +0000 (UTC) (envelope-from oliver@FreeBSD.org) Received: (qmail 5191 invoked by uid 89); 14 May 2009 15:26:54 -0000 Received: from unknown (HELO kartoffel.salatschuessel.net) (78.111.72.187) by avocado.salatschuessel.net with SMTP; 14 May 2009 15:26:54 -0000 Date: Thu, 14 May 2009 17:26:56 +0200 From: Oliver Lehmann To: x11@FreeBSD.org Message-Id: <20090514172656.18fb4350.oliver@FreeBSD.org> In-Reply-To: <20090513203129.fb21a669.oliver@FreeBSD.org> References: <20090429164113.f0b48048.lehmann@ans-netz.de> <20090429163843.GB370@slackbox.xs4all.nl> <18936.36210.823588.838523@gromit.timing.com> <20090430063454.969303d0.lehmann@ans-netz.de> <1241092672.3294.6.camel@localhost> <20090430122155.6643.qmail@avocado.salatschuessel.net> <18937.44531.88172.177326@gromit.timing.com> <20090430173416.042e03a8.oliver@FreeBSD.org> <20090513203129.fb21a669.oliver@FreeBSD.org> X-Mailer: Sylpheed 2.6.0 (GTK+ 2.16.1; amd64-portbld-freebsd7.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Tom Evans Subject: Re: Problem with OpenGL and ATI HD3850 X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 May 2009 15:26:58 -0000 Hi, talking with the ogre guy (I opened a bug report about that) He told me, that True is hardcoded here when calling glXCreatecontextwithConfigSGIX is set because: "The implementation should know whether it can do direct rendering or not, and fall back on X rendering if not, so True should always be a safe option. The only reason to pass False is if you need to share the context between processes. So this looks like an error in some part of your installed software." So if this is true, and regarding to http://techpubs.sgi.com/library/tpl/cgi-bin/getdoc.cgi?db=man&fname=/usr/share/catman/g_man/cat3/OpenGL/glxcreatecontextwithconfigsgix.z it looks like that, I wonder why the context returned by the function when having no 3d support is not working. What is wrong with either the drm for ATI, opengl or the glXCreatecontextwithConfigSGIX call? Oliver Lehmann wrote: > Oliver Lehmann wrote: > > > A guy in the ogre forum told me that Ogre cannot be run with a Software > > Rasterizer - that might be the case but I still wonder why glGetString > > isn't returning anything.... > > Ok, > > I found out, that the glContext is getting somehow created wrong. > It is created with > > glxContext = glXCreateContextWithConfigSGIX(mGLDisplay, fbConfig, > renderType, shareList, direct); > > having direct alwasy be True and renderType GLX_RGBA_TYPE. > Changing direct to False it gets a bit further and glGetString returns > the requested information. (Then it still crashes with some framebuffer > related message which I haven't looked at yet). > > Can someone explain to me what the last parameter of > glXCreateContextWithConfigSGIX is for and why True is not working here? > glxContext is not NULL when True was specified. -- Oliver Lehmann http://www.pofo.de/ http://wishlist.ans-netz.de/