Re: [AD] SF.net SVN: alleg:[15705] allegro/branches/5.1/src/macosx/osxgl.m

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


On Mon, 11 Jun 2012 22:42:41 +0200
Evert Glebbeek <eglebbk@xxxxxxxxxx> wrote:

> On 11 Jun 2012, at 22:26 , Elias Pschernig wrote:
> > Both FS and FSwin seem to make a window with a size of 1x1 which I
> > have to foce-close. I didn't investigate much though.
> 
> Weird.
> Could you put it on the tracker so it's recorded somewhere and not
> forgotten?
> 

I just tried again, in ex_fs_resize I see this in allegro.log:

opengl   D        ogl_display.c:538  _al_ogl_create_backbuffer        [   0.62780] Creating backbuffer
display  I        ogl_display.c:563  _al_ogl_create_backbuffer        [   0.62782] Deduced format ABGR_8888 for backbuffer.
opengl   D        ogl_display.c:572  _al_ogl_create_backbuffer        [   0.62784] Creating backbuffer bitmap
display  I        ogl_display.c:590  _al_ogl_create_backbuffer        [   0.62788] Created backbuffer bitmap (actual format: ABGR_8888)
opengl   E         ogl_bitmap.c:408  ogl_upload_bitmap                [   0.63212] glGenTextures failed: GL_INVALID_FRAMEBUFFER_OPERATION
dtor     D               dtor.c:184  _al_register_destructor          [   0.63411] added dtor for object 0x7fd4c9e38550, func 0x10f6839e0
opengl   D           ogl_lock.c:142  _al_ogl_lock_region_new          [   0.63425] Locking non-backbuffer WRITEONLY

So apparently something goes wrong early when setting up the OpenGL
context. Or rather, it is not set up at all - the mode actually does
switch (messing up the whole desktop). But there is no Allegro window
at all.

With ex_fs_window allegro.log has many lines like this on shutdown:

bitmap   D             bitmap.c:1052 _al_convert_to_memory_bitmap     [   2.07075] converting display bitmap 0x7ffb75129670 to memory bitmap
bitmap   D             bitmap.c:1052 _al_convert_to_memory_bitmap     [   2.07076] converting display bitmap 0x7ffb75129550 to memory bitmap
bitmap   D             bitmap.c:1052 _al_convert_to_memory_bitmap     [   2.07077] converting display bitmap 0x7ffb75129430 to memory bitmap
bitmap   D             bitmap.c:1052 _al_convert_to_memory_bitmap     [   2.07081] converting display bitmap 0x7ffb75129310 to memory bitmap
bitmap   D             bitmap.c:1052 _al_convert_to_memory_bitmap     [   2.07082] converting display bitmap 0x7ffb751291f0 to memory bitmap

The logs show nothing apparently wrong otherwise. And instead of a
fullscreen window I get a window which is maybe 10x10 pixel.

Can't investigate more right now... and the fullscreen icon works
perfectly so as I said in the commit log, may be a wasted effort - I'd
rather figure out if we can "click that icon programmatically" to get a
proper FS window :)





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