Re: [AD] Current SVN on OS X

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Ok, I've fixed the problem with double buffering not working in OS X windowed mode. Actually, I don't think this ever did work, since the code was forcing ALLEGRO_SINGLEBUFFER into the new window flags. I took out this code and added NSOpenGLPFADoubleBuffer to the window attributes (disabling it if ALLEGRO_SINGLEBUFFER) is set.

This works, but I get the impression that this is very different from the way options are (currently) set on the other platforms. Unfortunately, the OS X port appears to be different enough that it's not immediately clear to me how to update it to work in the same way. Presumably I will have to get the current settings using _al_get_new_display_settings() in additon to the new display flags, map those onto the NCOpenGLPixelFormat attributes (http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSOpenGLPixelFormat_Class/Reference/Reference.html#/ /apple_ref/doc/c_ref/NSOpenGLPixelFormatAttribute), and then build an appropriate list of properties to set?

Evert




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/