On May 27, 2007, at 12:40 PM, Jonathan Johnson wrote:
The things I was expecting to cause this behavior haven't changed
-- the projection, transpose, and modelview matrixes. They are
identical with or without the drawImage call. So, the textures are
the only known differences I can see. What's odd though is that
GL_TEXTURE_1D, 2D, etc. are all disabled, which would make me
believe that these settings wouldn't affect my line drawing.
Does anyone have any ideas on how these differences might be
affecting my line drawing, or any ideas on where else to look to
see what might be going on?
Have you tried glPushAttrib(GL_ALL_ATTRIB_BITS) and then a
corresponding glPopAttrib()?
I hadn't tried that, but unfortunately that also didn't work.
You can also try pushing and popping the coregraphics state -- I'm
not sure how this relates or directly affects OpenGL state.
I'm actually not using a CGContext -- just a CGLContext. I couldn't
see any state push and pops for the CI context.
This will at least save and restore the gl state, maybe helping you
to figure out what is going on. I would have assumed that maybe the
problem was with GL_LINE_SMOOTH, but if you say that the state has
not changed, then that is probably not the case. Do you have
supersampling enabled on your context? The other thing you could do
is to simply draw your image using OpenGL calls themselves.
Well, I'm still puzzled :) However, that's not a big issue anymore --
after being stuck I happened to see a piece of software that already
existed for the purpose I was wanting to write this app. And it
actually is quite nice :) So, I have no interest in finishing this up
anymore ;)
Thank you for your help,
Jon
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Mac-opengl mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/mac-opengl/email@hidden