-----Original Message----- From: umläute [mailto:zmoelnig@iem.mhsg.ac.at] Subject: Re: gem-0.84 again
<snip - a bunch of stuff about pix_snapshot>
I am putting together some example patches for pix_snapshot.
<snip - nvidia drivers>
headers, and indeed, Gem looks far more stable (especially when destroying the Gem-window-context; this led to crashes on the old hybrid mesa/open-GL GEM is used
This is good news. I didn't think that I was doing anything wrong in the OpenGL context code...it is nice to know that it is probably just the driver.
<snip - GLenum stuff>
I do not have any casts in my original Win32/IRIX sources. What is the exact format that Linux wants? I will put that into the main source code.
For those of you keeping score, I haven't released gem-0.84 yet. I know :-( Must finish gem-0.84...not...enough...time...
Later, Mark
============================ = mdanks@stormfront.com = Lead Programmer PS2 = http://www.danks.org/mark ============================
Mark Danks wrote:
<snip - nvidia drivers>
headers, and indeed, Gem looks far more stable (especially when destroying the Gem-window-context; this led to crashes on the old hybrid mesa/open-GL GEM is used
This is good news. I didn't think that I was doing anything wrong in the OpenGL context code...it is nice to know that it is probably just the driver.
<snip - GLenum stuff>
I do not have any casts in my original Win32/IRIX sources. What is the exact format that Linux wants? I will put that into the main source code.
that's exactly what i talked about (for no real reason, except to let anybody know) you (and i guess all those who have the dubious luck of using Win32, including me) do not have the need of casting anything (concerned with the GLenum); all those boys and girls who are doing mesa stuff (and this is, as i think, the bid deal of audio-interested linux-users that want to do "some" graphic-stuff and not have to invest much in expensive cards) will have to do a (enum GLenum) cast whenever a GLenum appears again my example:: your original code m_drawtype = GL_FILL; mesa code m_drawtype = (enum GLenum) GL_FILL; now nvidia released their linux-driver which have real hardware support of real openGL which has little to do with the weird world of mesaGL therefore the correct code in the linux/nvidia-context would be again m_drawtype = GL_FILL; to save keyboard i only deleted the "enum", wich results in a redundant cast m_drawtype = (GLenum) GL_FILL;
hope this makes the problem clear :: how to write "good" code ? maybe we should use precompiler directives like
#ifdef MESA #define GLENUM_CAST (enum GLenum) #else #define GLENUM_CAST #endif
m_drawtype = GLENUM_CAST GL_FILL;
or something mfg.else.fsda iohannes