From: Brian P. <bri...@tu...> - 2004-03-26 20:56:35
|
Braden McDaniel wrote: > On Thu, 2004-03-25 at 03:46, Keith Whitwell wrote: > >>Braden McDaniel wrote: >> >>>Any ideas why this code: >>> >>> std::cout << "setting " << emission[0] << ' ' << emission[1] << ' ' >>> << emission[2] << ' ' << emission[3] << std::endl; >>> glMaterialfv(GL_FRONT, GL_EMISSION, emission); >>> GLfloat e[4]; >>> glGetMaterialfv(GL_FRONT, GL_EMISSION, e); >>> std::cout << "got " << e[0] << ' ' << e[1] << ' ' << e[2] << ' ' >>> << e[3] << std::endl; >>> >>>... would give this output? >>> >>> setting 0 1 0 1 >>> got 0 0 0 1 >>> >>>I'm using the version of Mesa that's included with XFree86 on Fedora >>>Core 1, which is apparently 4.0.4. Is there some context(s) in which >>>setting the GL_EMISSION material property is expected not to work? Or is >>>there possibly some bug here? >>> >> >>There may well be a bug, but 4.0 isn't really getting much attention any >>longer, as we're well into a 6.0 series. >> >>Can you try with a more recent Mesa or DRI snapshot? > > > I hope so. > > I haven't been able to convince my app to link with the binary of Mesa > 6.0 I built; it keeps finding the one in /usr/X11R6/lib. So I'm trying > to install a DRI snapshot; but so far I haven't had much luck with that > either. I've asked on the dri-users list regarding my problems there. Try setting your LD_LIBRARY_PATH to point to the libGL which you want. -Brian |