Allegro.cc - Online Community

Allegro.cc Forums » Programming Questions » [a5] Back to Basics: Bitmap loading errors

This thread is locked; no one can reply to it. rss feed Print
[a5] Back to Basics: Bitmap loading errors
Phrasz
Member #10,091
August 2008

So I'm going crazy, having bad coding catching up to me, or need more rest because I've been up too long. My current issue is I am getting a Segfault on a al_clone_bitmap() call. I've never have had this issue until this last week.

The scoop: I have always used the bitmap example method of loading a bitmap (ex_bitmap.c):

#SelectExpand
1 /* We load the bitmap into a memory bitmap, because creating a 2 * display bitmap could fail if the bitmap is too big to fit into a 3 * single texture. 4 * FIXME: Or should A5 automatically created multiple display bitmaps? 5 */ 6 al_set_new_bitmap_flags(ALLEGRO_MEMORY_BITMAP); 7 t0 = al_get_time(); 8 membitmap = al_load_bitmap(filename); 9 t1 = al_get_time(); 10 if (!membitmap) { 11 abort_example("%s not found or failed to load\n", filename); 12 } 13 al_set_new_bitmap_flags(ALLEGRO_VIDEO_BITMAP); 14 15 printf("Loading took %.4f seconds\n", t1 - t0); 16 17 // FIXME: 18 // Now try to split the memory bitmap into display bitmaps? 19 bitmap = al_clone_bitmap(membitmap); 20 if (!bitmap) 21 bitmap = membitmap;

However, for whatever reason most of my code has the following portion removed if new bitmaps are loaded:

#SelectExpand
1 if (!bitmap) 2 bitmap = membitmap;

If I don't include this in my current code I segfault. Has anyone face a similar issue? The even odder thing is the code compiles fine on my windows 7 pc, but then bricks on my windows xp laptop.

The code::blocks debugger just points to the function call and says segfault...

Any help?

</code>

Edgar Reynaldo
Major Reynaldo
May 2007
avatar

I don't get it - why don't you just load the bitmap as a video bitmap to begin with, and fall back to a memory bitmap if it fails? Is there some tutorial somewhere that says you have to load as a memory bitmap first before making a video bitmap? If so, it should probably be rewritten.

Can you build a debugging version, link against the debugging version of Allegro, and get a backtrace of where it is in al_clone_bitmap when it crashes?

Phrasz
Member #10,091
August 2008

Thanks for the response Edgar.

To my knowledge, the code as described above is still the ex_bitmap example that comes with the source. I honestly couldn't tell you the difference between one way of flag setting or the other. However, I assume your method is valid.

I have tried to determine where it fails. However, even when I try using the debugger it just states that the function al_clone_bitmap() segfaults when used in the a5 monolith-mt.dll file.

Edgar Reynaldo
Major Reynaldo
May 2007
avatar

Link against the *monolith-mt-debug.a library to get debugging symbols, and then when it crashes in the debugger, get a backtrace (stack trace / function call trace).

Here's the code for al_clone_bitmap from 5.0.2 :

#SelectExpand
1ALLEGRO_BITMAP *al_clone_bitmap(ALLEGRO_BITMAP *bitmap) 2{ 3 ALLEGRO_BITMAP *clone = al_create_bitmap(bitmap->w, bitmap->h); 4 ALLEGRO_LOCKED_REGION *dst_region; 5 ALLEGRO_LOCKED_REGION *src_region; 6 7 if (!clone) 8 return NULL; 9 10 if (!(src_region = al_lock_bitmap(bitmap, ALLEGRO_PIXEL_FORMAT_ANY, ALLEGRO_LOCK_READONLY))) 11 return NULL; 12 13 if (!(dst_region = al_lock_bitmap(clone, ALLEGRO_PIXEL_FORMAT_ANY, ALLEGRO_LOCK_WRITEONLY))) { 14 al_unlock_bitmap(bitmap); 15 return NULL; 16 } 17 18 _al_convert_bitmap_data( 19 src_region->data, src_region->format, src_region->pitch, 20 dst_region->data, dst_region->format, dst_region->pitch, 21 0, 0, 0, 0, bitmap->w, bitmap->h); 22 23 al_unlock_bitmap(bitmap); 24 al_unlock_bitmap(clone); 25 26 return clone; 27}

The only reason I can see that it would segfault is if the bitmap passed into it is not a valid ALLEGRO_BITMAP, but according to your code, you check for a NULL bitmap, so I'm not sure why it would segfault...

In any case, if you link to the debugging version of Allegro, you will also get a text file called allegro.log. Attach that to your post, it may have a clue.

The important thing though, is to get the line number in al_clone_bitmap where it fails. If you have to, run it through gdb manually :

gdb program.exe
....
>run
CRASH!
>backtrace
>backtrace 1 full

Phrasz
Member #10,091
August 2008

Wow I am slow tonight. I'll run it against that quick. I did with just code blocks:
{"name":"6003450481_e0163eddcd_b.jpg","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/9\/2\/92cc1a2d642cac92a14c7be6887c7063.jpg","w":830,"h":577,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/9\/2\/92cc1a2d642cac92a14c7be6887c7063"}6003450481_e0163eddcd_b.jpg

brb. I'll link against the debugger...

So here's the debugger dump:

#SelectExpand
1system W d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\wsystem.c:550 load_library_at_path [ 0.00163] Failed to load C:\My Programming\BETC\BETC\bin\Debug\d3d9.dll (error: 126) 2system I d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\wsystem.c:543 load_library_at_path [ 0.00411] Loaded C:\WINDOWS\system32\d3d9.dll 3d3d I d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:879 _al_d3d_init_display [ 0.01670] Render-to-texture: 1 4system I d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\system.c:268 al_install_system [ 0.01683] Allegro version: 5.0.3 5font D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\addons\ttf\ttf.c:556 al_load_ttf_font_f [ 0.01892] Font data/Oran.ttf loaded with pixel size 138. 6font D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\addons\ttf\ttf.c:558 al_load_ttf_font_f [ 0.01911] ascent=110.0, descent=-27.0, height=136.0 7font D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\addons\ttf\ttf.c:587 al_load_ttf_font_f [ 0.01923] data/Oran.ttf: Preparing cache for 110 glyphs. 8dtor D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\dtor.c:184 _al_register_destructor [ 0.01929] added dtor for object 003ED260, func 67E5045D 9font D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\addons\ttf\ttf.c:556 al_load_ttf_font_f [ 0.02001] Font data/256bytes.ttf loaded with pixel size 47. 10font D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\addons\ttf\ttf.c:558 al_load_ttf_font_f [ 0.02007] ascent=43.0, descent=-8.0, height=51.0 11font D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\addons\ttf\ttf.c:587 al_load_ttf_font_f [ 0.02021] data/256bytes.ttf: Preparing cache for 170 glyphs. 12dtor D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\dtor.c:184 _al_register_destructor [ 0.02026] added dtor for object 089D1B48, func 67E5045D 13d3d I d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1919 d3d_create_display_locked [ 0.02148] faux_fullscreen=0 14display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 0.02413] Score is : 897 15display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 0.02419] Score is : 897 16display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 0.02425] Score is : 897 17display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 0.02429] Score is : 897 18display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 0.02434] Score is : 769 19display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 0.02439] Score is : 737 20display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 0.02444] Score is : 769 21display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 0.02449] Score is : 737 22display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 0.02454] Score is : 769 23display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 0.02458] Score is : 737 24display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 0.02463] Score is : 769 25display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 0.02476] Score is : 737 26display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 0.02482] Single Buffer requirement not met. 27display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 0.02487] Single Buffer requirement not met. 28display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 0.02492] Single Buffer requirement not met. 29display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 0.02497] Single Buffer requirement not met. 30display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 0.02502] Single Buffer requirement not met. 31display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 0.02507] Single Buffer requirement not met. 32display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 0.02511] Single Buffer requirement not met. 33display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 0.02516] Single Buffer requirement not met. 34display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 0.02521] Single Buffer requirement not met. 35display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 0.02526] Single Buffer requirement not met. 36display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 0.02530] Single Buffer requirement not met. 37display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 0.02535] Single Buffer requirement not met. 38display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 0.02540] Score is : 769 39display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 0.02545] Score is : 769 40display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 0.02550] Score is : 769 41display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 0.02554] Score is : 769 42display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 0.02559] Score is : 769 43display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 0.02564] Score is : 641 44display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 0.02569] Score is : 609 45display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 0.02573] Score is : 641 46display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 0.02578] Score is : 609 47display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 0.02583] Score is : 641 48display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 0.02588] Score is : 609 49display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 0.02593] Score is : 641 50display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 0.02605] Score is : 609 51display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 0.02611] Score is : 641 52display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 0.02616] Score is : 609 53display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 0.02620] Single Buffer requirement not met. 54display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 0.02625] Single Buffer requirement not met. 55display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 0.02630] Single Buffer requirement not met. 56display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 0.02635] Single Buffer requirement not met. 57display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 0.02639] Single Buffer requirement not met. 58display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 0.02644] Single Buffer requirement not met. 59display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 0.02649] Single Buffer requirement not met. 60display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 0.02654] Single Buffer requirement not met. 61display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 0.02658] Single Buffer requirement not met. 62display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 0.02663] Single Buffer requirement not met. 63display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 0.02668] Single Buffer requirement not met. 64display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 0.02673] Single Buffer requirement not met. 65display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 0.02677] Single Buffer requirement not met. 66display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 0.02682] Single Buffer requirement not met. 67display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 0.02687] Single Buffer requirement not met. 68display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 0.02693] Score is : 897 69display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 0.02698] Score is : 897 70display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 0.02702] Score is : 897 71display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 0.02707] Score is : 897 72display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 0.02717] Score is : 897 73display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 0.02723] Score is : 897 74display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 0.02728] Score is : 897 75display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 0.02732] Score is : 769 76display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 0.02737] Score is : 737 77display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 0.02742] Score is : 769 78display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 0.02747] Score is : 737 79display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 0.02751] Score is : 769 80display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 0.02756] Score is : 737 81display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 0.02761] Score is : 769 82display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 0.02766] Score is : 737 83display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 0.02771] Score is : 769 84display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 0.02775] Score is : 737 85display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 0.02780] Score is : 769 86display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 0.02785] Score is : 737 87display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 0.02824] Score is : 769 88display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 0.02830] Score is : 737 89display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 0.02835] Single Buffer requirement not met. 90display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 0.02840] Single Buffer requirement not met. 91display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 0.02844] Single Buffer requirement not met. 92display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 0.02849] Single Buffer requirement not met. 93display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 0.02854] Single Buffer requirement not met. 94display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 0.02859] Single Buffer requirement not met. 95display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 0.02863] Single Buffer requirement not met. 96display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 0.02868] Single Buffer requirement not met. 97display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 0.02873] Single Buffer requirement not met. 98display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 0.02885] Single Buffer requirement not met. 99display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 0.02891] Single Buffer requirement not met. 100display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 0.02896] Single Buffer requirement not met. 101display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 0.02900] Single Buffer requirement not met. 102display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 0.02905] Single Buffer requirement not met. 103display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 0.02910] Single Buffer requirement not met. 104display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 0.02915] Single Buffer requirement not met. 105display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 0.02919] Single Buffer requirement not met. 106display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 0.02924] Single Buffer requirement not met. 107display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 0.02929] Single Buffer requirement not met. 108display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 0.02934] Single Buffer requirement not met. 109display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 0.02938] Single Buffer requirement not met. 110display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 0.02943] Score is : 769 111display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 0.02948] Score is : 769 112display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 0.02953] Score is : 769 113display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 0.02957] Score is : 769 114display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 0.02962] Score is : 769 115display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 0.02967] Score is : 769 116display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 0.02972] Score is : 769 117display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 0.02976] Score is : 641 118display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 0.02989] Score is : 609 119display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 0.02994] Score is : 641 120display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 0.02999] Score is : 609 121display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 0.03004] Score is : 641 122display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 0.03009] Score is : 609 123display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 0.03014] Score is : 641 124display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 0.03019] Score is : 609 125display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 0.03023] Score is : 641 126display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 0.03028] Score is : 609 127display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 0.03033] Score is : 641 128display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 0.03037] Score is : 609 129display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 0.03042] Score is : 641 130display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 0.03047] Score is : 609 131display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 0.03052] Single Buffer requirement not met. 132display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 0.03056] Single Buffer requirement not met. 133display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 0.03061] Single Buffer requirement not met. 134display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 0.03066] Single Buffer requirement not met. 135display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 0.03071] Single Buffer requirement not met. 136display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 0.03075] Single Buffer requirement not met. 137display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 0.03080] Single Buffer requirement not met. 138display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 0.03085] Single Buffer requirement not met. 139display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 0.03089] Single Buffer requirement not met. 140display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 0.03095] Single Buffer requirement not met. 141display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 0.03100] Single Buffer requirement not met. 142display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 0.03104] Single Buffer requirement not met. 143display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 0.03109] Single Buffer requirement not met. 144display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 0.03114] Single Buffer requirement not met. 145display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 0.03118] Single Buffer requirement not met. 146display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 0.03124] Single Buffer requirement not met. 147display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 0.03128] Single Buffer requirement not met. 148display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 0.03133] Single Buffer requirement not met. 149display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 0.03138] Single Buffer requirement not met. 150display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 0.03143] Single Buffer requirement not met. 151display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 0.03147] Single Buffer requirement not met. 152display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:197 _al_score_display_settings [ 0.03152] Display not compatible with Allegro. 153display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:197 _al_score_display_settings [ 0.03157] Display not compatible with Allegro. 154d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1836 d3d_create_display_internals [ 0.03171] Trying format 0 of 140. 155d3d I d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1514 d3d_display_thread_proc [ 0.03833] Chose a display format: 23 156d3d I d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1583 d3d_display_thread_proc [ 0.03841] Normal window. 157d3d I d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:978 d3d_create_device [ 0.05590] Using no depth stencil buffer 158d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1058 d3d_create_device [ 0.09530] BeginScene succeeded in create_device 159d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1066 d3d_create_device [ 0.09542] Success 160d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1859 d3d_create_display_internals [ 0.09549] Resumed after wait. 161d3d I d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1884 d3d_create_display_internals [ 0.09565] Format 0 succeeded. 162dtor D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\dtor.c:184 _al_register_destructor [ 0.11630] added dtor for object 089E9D78, func 67E640EF 163d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1354 real_choose_bitmap_format [ 0.26538] Fake format 164d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1354 real_choose_bitmap_format [ 0.26543] Fake format 165d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1354 real_choose_bitmap_format [ 0.26545] Fake format 166d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1354 real_choose_bitmap_format [ 0.26546] Fake format 167d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1354 real_choose_bitmap_format [ 0.26548] Fake format 168d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1354 real_choose_bitmap_format [ 0.26549] Fake format 169d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1354 real_choose_bitmap_format [ 0.26551] Fake format 170d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1354 real_choose_bitmap_format [ 0.26553] Fake format 171d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1354 real_choose_bitmap_format [ 0.26555] Fake format 172d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1362 real_choose_bitmap_format [ 0.26556] Alpha doesn't match 173d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1369 real_choose_bitmap_format [ 0.26558] Adapter format is 23 174d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1372 real_choose_bitmap_format [ 0.26560] Found a format 175d3d I d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:2446 _al_d3d_create_bitmap [ 0.26562] Chose bitmap format 9 176d3d E d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_bmp.cpp:310 d3d_create_textures [ 0.26573] d3d_create_textures: Unable to create video texture. 177dtor D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\dtor.c:214 _al_unregister_destructor [ 0.26577] removed dtor for object 089E9D78 178d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1354 real_choose_bitmap_format [ 0.26617] Fake format 179d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1354 real_choose_bitmap_format [ 0.26618] Fake format 180d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1354 real_choose_bitmap_format [ 0.26620] Fake format 181d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1354 real_choose_bitmap_format [ 0.26621] Fake format 182d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1354 real_choose_bitmap_format [ 0.26623] Fake format 183d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1354 real_choose_bitmap_format [ 0.26625] Fake format 184d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1354 real_choose_bitmap_format [ 0.26626] Fake format 185d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1354 real_choose_bitmap_format [ 0.26628] Fake format 186d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1354 real_choose_bitmap_format [ 0.26629] Fake format 187d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1362 real_choose_bitmap_format [ 0.26631] Alpha doesn't match 188d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1369 real_choose_bitmap_format [ 0.26632] Adapter format is 23 189d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1372 real_choose_bitmap_format [ 0.26634] Found a format 190d3d I d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:2446 _al_d3d_create_bitmap [ 0.26635] Chose bitmap format 9 191dtor D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\dtor.c:184 _al_register_destructor [ 0.26659] added dtor for object 089E8D70, func 67E640EF 192d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_bmp.cpp:457 _al_d3d_sync_bitmap [ 0.27344] _al_d3d_sync_bitmap (system) ref count == 1 193d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_bmp.cpp:462 _al_d3d_sync_bitmap [ 0.27346] _al_d3d_sync_bitmap (video) ref count == 1 194d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_bmp.cpp:457 _al_d3d_sync_bitmap [ 0.29259] _al_d3d_sync_bitmap (system) ref count == 1 195d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_bmp.cpp:462 _al_d3d_sync_bitmap [ 0.29269] _al_d3d_sync_bitmap (video) ref count == 1 196d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1354 real_choose_bitmap_format [ 0.30970] Fake format 197d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1354 real_choose_bitmap_format [ 0.30974] Fake format 198d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1354 real_choose_bitmap_format [ 0.30975] Fake format 199d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1354 real_choose_bitmap_format [ 0.30977] Fake format 200d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1354 real_choose_bitmap_format [ 0.30978] Fake format 201d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1354 real_choose_bitmap_format [ 0.30980] Fake format 202d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1354 real_choose_bitmap_format [ 0.30982] Fake format 203d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1354 real_choose_bitmap_format [ 0.30983] Fake format 204d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1354 real_choose_bitmap_format [ 0.30985] Fake format 205d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1362 real_choose_bitmap_format [ 0.30986] Alpha doesn't match 206d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1369 real_choose_bitmap_format [ 0.30988] Adapter format is 23 207d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1372 real_choose_bitmap_format [ 0.30990] Found a format 208d3d I d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:2446 _al_d3d_create_bitmap [ 0.30992] Chose bitmap format 9 209dtor D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\dtor.c:184 _al_register_destructor [ 0.31019] added dtor for object 08A203C8, func 67E640EF 210d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_bmp.cpp:457 _al_d3d_sync_bitmap [ 0.31850] _al_d3d_sync_bitmap (system) ref count == 1 211d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_bmp.cpp:462 _al_d3d_sync_bitmap [ 0.31854] _al_d3d_sync_bitmap (video) ref count == 2 212d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_bmp.cpp:457 _al_d3d_sync_bitmap [ 0.32502] _al_d3d_sync_bitmap (system) ref count == 1 213d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_bmp.cpp:462 _al_d3d_sync_bitmap [ 0.32504] _al_d3d_sync_bitmap (video) ref count == 1 214dtor D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\dtor.c:214 _al_unregister_destructor [ 0.32553] removed dtor for object 089E8D70 215d3d W d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_bmp.cpp:677 d3d_destroy_bitmap [ 0.32556] d3d_destroy_bitmap: Release video texture failed. 216d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1354 real_choose_bitmap_format [ 0.32648] Fake format 217d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1354 real_choose_bitmap_format [ 0.32651] Fake format 218d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1354 real_choose_bitmap_format [ 0.32653] Fake format 219d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1354 real_choose_bitmap_format [ 0.32654] Fake format 220d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1354 real_choose_bitmap_format [ 0.32656] Fake format 221d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1354 real_choose_bitmap_format [ 0.32658] Fake format 222d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1354 real_choose_bitmap_format [ 0.32659] Fake format 223d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1354 real_choose_bitmap_format [ 0.32661] Fake format 224d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1354 real_choose_bitmap_format [ 0.32662] Fake format 225d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1362 real_choose_bitmap_format [ 0.32664] Alpha doesn't match 226d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1369 real_choose_bitmap_format [ 0.32665] Adapter format is 23 227d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1372 real_choose_bitmap_format [ 0.32667] Found a format 228d3d I d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:2446 _al_d3d_create_bitmap [ 0.32669] Chose bitmap format 9 229d3d E d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_bmp.cpp:310 d3d_create_textures [ 0.32677] d3d_create_textures: Unable to create video texture. 230bitmap W d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\bitmap_io.c:221 al_load_bitmap [ 0.32682] Failed loading images/PPlogo.bmp with .bmp handler.

It seems like it's a d3d9 issue at first glance, but that's never been a problem before ... Still scanning the file.

Another note: the same thing happens with 5.01 as with 5.0.3

An interesting tidbit: When I place the d3d9.dll from system32 into the debug folder the errors change slightly

#SelectExpand
1system I d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\wsystem.c:543 load_library_at_path [ 1.70488] Loaded C:\My Programming\BETC\BETC\bin\Debug\d3d9.dll 2d3d I d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:879 _al_d3d_init_display [ 1.73199] Render-to-texture: 1 3system I d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\system.c:268 al_install_system [ 1.73214] Allegro version: 5.0.3 4font D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\addons\ttf\ttf.c:556 al_load_ttf_font_f [ 1.73759] Font data/Oran.ttf loaded with pixel size 138. 5font D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\addons\ttf\ttf.c:558 al_load_ttf_font_f [ 1.73780] ascent=110.0, descent=-27.0, height=136.0 6font D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\addons\ttf\ttf.c:587 al_load_ttf_font_f [ 1.73792] data/Oran.ttf: Preparing cache for 110 glyphs. 7dtor D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\dtor.c:184 _al_register_destructor [ 1.73797] added dtor for object 003ED388, func 67E5045D 8font D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\addons\ttf\ttf.c:556 al_load_ttf_font_f [ 1.73871] Font data/256bytes.ttf loaded with pixel size 47. 9font D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\addons\ttf\ttf.c:558 al_load_ttf_font_f [ 1.73878] ascent=43.0, descent=-8.0, height=51.0 10font D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\addons\ttf\ttf.c:587 al_load_ttf_font_f [ 1.73892] data/256bytes.ttf: Preparing cache for 170 glyphs. 11dtor D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\dtor.c:184 _al_register_destructor [ 1.73898] added dtor for object 08B81B28, func 67E5045D 12d3d I d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1919 d3d_create_display_locked [ 1.74028] faux_fullscreen=0 13display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 1.74329] Score is : 897 14display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 1.74336] Score is : 897 15display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 1.74341] Score is : 897 16display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 1.74346] Score is : 897 17display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 1.74351] Score is : 769 18display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 1.74356] Score is : 737 19display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 1.74361] Score is : 769 20display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 1.74366] Score is : 737 21display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 1.74371] Score is : 769 22display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 1.74375] Score is : 737 23display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 1.74380] Score is : 769 24display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 1.74385] Score is : 737 25display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 1.74390] Single Buffer requirement not met. 26display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 1.74405] Single Buffer requirement not met. 27display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 1.74410] Single Buffer requirement not met. 28display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 1.74415] Single Buffer requirement not met. 29display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 1.74423] Single Buffer requirement not met. 30display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 1.74428] Single Buffer requirement not met. 31display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 1.74433] Single Buffer requirement not met. 32display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 1.74437] Single Buffer requirement not met. 33display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 1.74442] Single Buffer requirement not met. 34display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 1.74447] Single Buffer requirement not met. 35display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 1.74452] Single Buffer requirement not met. 36display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 1.74457] Single Buffer requirement not met. 37display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 1.74462] Score is : 769 38display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 1.74467] Score is : 769 39display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 1.74471] Score is : 769 40display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 1.74476] Score is : 769 41display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 1.74481] Score is : 769 42display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 1.74486] Score is : 641 43display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 1.74491] Score is : 609 44display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 1.74496] Score is : 641 45display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 1.74501] Score is : 609 46display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 1.74505] Score is : 641 47display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 1.74510] Score is : 609 48display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 1.74515] Score is : 641 49display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 1.74521] Score is : 609 50display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 1.74534] Score is : 641 51display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 1.74539] Score is : 609 52display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 1.74544] Single Buffer requirement not met. 53display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 1.74549] Single Buffer requirement not met. 54display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 1.74554] Single Buffer requirement not met. 55display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 1.74558] Single Buffer requirement not met. 56display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 1.74563] Single Buffer requirement not met. 57display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 1.74568] Single Buffer requirement not met. 58display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 1.74573] Single Buffer requirement not met. 59display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 1.74578] Single Buffer requirement not met. 60display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 1.74583] Single Buffer requirement not met. 61display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 1.74587] Single Buffer requirement not met. 62display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 1.74592] Single Buffer requirement not met. 63display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 1.74597] Single Buffer requirement not met. 64display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 1.74602] Single Buffer requirement not met. 65display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 1.74607] Single Buffer requirement not met. 66display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 1.74612] Single Buffer requirement not met. 67display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 1.74617] Score is : 897 68display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 1.74622] Score is : 897 69display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 1.74627] Score is : 897 70display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 1.74632] Score is : 897 71display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 1.74637] Score is : 897 72display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 1.74642] Score is : 897 73display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 1.74648] Score is : 897 74display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 1.74652] Score is : 769 75display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 1.74657] Score is : 737 76display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 1.74662] Score is : 769 77display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 1.74667] Score is : 737 78display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 1.74672] Score is : 769 79display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 1.74677] Score is : 737 80display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 1.74682] Score is : 769 81display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 1.74687] Score is : 737 82display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 1.74692] Score is : 769 83display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 1.74696] Score is : 737 84display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 1.74701] Score is : 769 85display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 1.74706] Score is : 737 86display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 1.74711] Score is : 769 87display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 1.74716] Score is : 737 88display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 1.74722] Single Buffer requirement not met. 89display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 1.74727] Single Buffer requirement not met. 90display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 1.74732] Single Buffer requirement not met. 91display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 1.74736] Single Buffer requirement not met. 92display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 1.74741] Single Buffer requirement not met. 93display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 1.74746] Single Buffer requirement not met. 94display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 1.74751] Single Buffer requirement not met. 95display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 1.74756] Single Buffer requirement not met. 96display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 1.74761] Single Buffer requirement not met. 97display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 1.74765] Single Buffer requirement not met. 98display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 1.74777] Single Buffer requirement not met. 99display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 1.74783] Single Buffer requirement not met. 100display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 1.74787] Single Buffer requirement not met. 101display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 1.74792] Single Buffer requirement not met. 102display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 1.74797] Single Buffer requirement not met. 103display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 1.74802] Single Buffer requirement not met. 104display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 1.74807] Single Buffer requirement not met. 105display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 1.74812] Single Buffer requirement not met. 106display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 1.74817] Single Buffer requirement not met. 107display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 1.74822] Single Buffer requirement not met. 108display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 1.74827] Single Buffer requirement not met. 109display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 1.74832] Score is : 769 110display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 1.74837] Score is : 769 111display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 1.74842] Score is : 769 112display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 1.74847] Score is : 769 113display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 1.74852] Score is : 769 114display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 1.74857] Score is : 769 115display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 1.74861] Score is : 769 116display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 1.74866] Score is : 641 117display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 1.74871] Score is : 609 118display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 1.74876] Score is : 641 119display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 1.74881] Score is : 609 120display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 1.74886] Score is : 641 121display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 1.74891] Score is : 609 122display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 1.74896] Score is : 641 123display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 1.74901] Score is : 609 124display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 1.74906] Score is : 641 125display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 1.74911] Score is : 609 126display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 1.74916] Score is : 641 127display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 1.74922] Score is : 609 128display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 1.74926] Score is : 641 129display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:486 _al_score_display_settings [ 1.74931] Score is : 609 130display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 1.74936] Single Buffer requirement not met. 131display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 1.74941] Single Buffer requirement not met. 132display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 1.74946] Single Buffer requirement not met. 133display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 1.74951] Single Buffer requirement not met. 134display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 1.74956] Single Buffer requirement not met. 135display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 1.74960] Single Buffer requirement not met. 136display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 1.74965] Single Buffer requirement not met. 137display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 1.74970] Single Buffer requirement not met. 138display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 1.74975] Single Buffer requirement not met. 139display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 1.74980] Single Buffer requirement not met. 140display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 1.74984] Single Buffer requirement not met. 141display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 1.74989] Single Buffer requirement not met. 142display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 1.74994] Single Buffer requirement not met. 143display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 1.74999] Single Buffer requirement not met. 144display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 1.75004] Single Buffer requirement not met. 145display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 1.75009] Single Buffer requirement not met. 146display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 1.75014] Single Buffer requirement not met. 147display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 1.75046] Single Buffer requirement not met. 148display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 1.75052] Single Buffer requirement not met. 149display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 1.75057] Single Buffer requirement not met. 150display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:357 _al_score_display_settings [ 1.75062] Single Buffer requirement not met. 151display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:197 _al_score_display_settings [ 1.75067] Display not compatible with Allegro. 152display D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\display_settings.c:197 _al_score_display_settings [ 1.75071] Display not compatible with Allegro. 153d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1836 d3d_create_display_internals [ 1.75085] Trying format 0 of 140. 154d3d I d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1514 d3d_display_thread_proc [ 1.75536] Chose a display format: 23 155d3d I d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1583 d3d_display_thread_proc [ 1.75544] Normal window. 156d3d I d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:978 d3d_create_device [ 1.77567] Using no depth stencil buffer 157d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1058 d3d_create_device [ 1.82775] BeginScene succeeded in create_device 158d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1066 d3d_create_device [ 1.82784] Success 159d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1859 d3d_create_display_internals [ 1.82792] Resumed after wait. 160d3d I d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1884 d3d_create_display_internals [ 1.82808] Format 0 succeeded. 161dtor D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\dtor.c:184 _al_register_destructor [ 1.84200] added dtor for object 08B99D70, func 67E640EF 162d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1354 real_choose_bitmap_format [ 1.95349] Fake format 163d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1354 real_choose_bitmap_format [ 1.95354] Fake format 164d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1354 real_choose_bitmap_format [ 1.95356] Fake format 165d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1354 real_choose_bitmap_format [ 1.95358] Fake format 166d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1354 real_choose_bitmap_format [ 1.95359] Fake format 167d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1354 real_choose_bitmap_format [ 1.95361] Fake format 168d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1354 real_choose_bitmap_format [ 1.95362] Fake format 169d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1354 real_choose_bitmap_format [ 1.95364] Fake format 170d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1354 real_choose_bitmap_format [ 1.95367] Fake format 171d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1362 real_choose_bitmap_format [ 1.95368] Alpha doesn't match 172d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1369 real_choose_bitmap_format [ 1.95370] Adapter format is 23 173d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1372 real_choose_bitmap_format [ 1.95372] Found a format 174d3d I d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:2446 _al_d3d_create_bitmap [ 1.95374] Chose bitmap format 9 175d3d E d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_bmp.cpp:310 d3d_create_textures [ 1.95386] d3d_create_textures: Unable to create video texture. 176dtor D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\dtor.c:214 _al_unregister_destructor [ 1.95389] removed dtor for object 08B99D70 177d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1354 real_choose_bitmap_format [ 1.95429] Fake format 178d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1354 real_choose_bitmap_format [ 1.95431] Fake format 179d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1354 real_choose_bitmap_format [ 1.95433] Fake format 180d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1354 real_choose_bitmap_format [ 1.95434] Fake format 181d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1354 real_choose_bitmap_format [ 1.95436] Fake format 182d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1354 real_choose_bitmap_format [ 1.95437] Fake format 183d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1354 real_choose_bitmap_format [ 1.95439] Fake format 184d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1354 real_choose_bitmap_format [ 1.95440] Fake format 185d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1354 real_choose_bitmap_format [ 1.95442] Fake format 186d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1362 real_choose_bitmap_format [ 1.95444] Alpha doesn't match 187d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1369 real_choose_bitmap_format [ 1.95445] Adapter format is 23 188d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1372 real_choose_bitmap_format [ 1.95447] Found a format 189d3d I d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:2446 _al_d3d_create_bitmap [ 1.95449] Chose bitmap format 9 190dtor D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\dtor.c:184 _al_register_destructor [ 1.95501] added dtor for object 08B98D68, func 67E640EF 191d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_bmp.cpp:457 _al_d3d_sync_bitmap [ 1.96324] _al_d3d_sync_bitmap (system) ref count == 1 192d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_bmp.cpp:462 _al_d3d_sync_bitmap [ 1.96328] _al_d3d_sync_bitmap (video) ref count == 1 193d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_bmp.cpp:457 _al_d3d_sync_bitmap [ 1.98458] _al_d3d_sync_bitmap (system) ref count == 1 194d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_bmp.cpp:462 _al_d3d_sync_bitmap [ 1.98464] _al_d3d_sync_bitmap (video) ref count == 1 195d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1354 real_choose_bitmap_format [ 2.02626] Fake format 196d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1354 real_choose_bitmap_format [ 2.02631] Fake format 197d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1354 real_choose_bitmap_format [ 2.02633] Fake format 198d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1354 real_choose_bitmap_format [ 2.02635] Fake format 199d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1354 real_choose_bitmap_format [ 2.02636] Fake format 200d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1354 real_choose_bitmap_format [ 2.02638] Fake format 201d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1354 real_choose_bitmap_format [ 2.02639] Fake format 202d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1354 real_choose_bitmap_format [ 2.02641] Fake format 203d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1354 real_choose_bitmap_format [ 2.02642] Fake format 204d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1362 real_choose_bitmap_format [ 2.02644] Alpha doesn't match 205d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1369 real_choose_bitmap_format [ 2.02646] Adapter format is 23 206d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1372 real_choose_bitmap_format [ 2.02648] Found a format 207d3d I d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:2446 _al_d3d_create_bitmap [ 2.02649] Chose bitmap format 9 208dtor D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\dtor.c:184 _al_register_destructor [ 2.02677] added dtor for object 08BD03E0, func 67E640EF 209d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_bmp.cpp:457 _al_d3d_sync_bitmap [ 2.03411] _al_d3d_sync_bitmap (system) ref count == 1 210d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_bmp.cpp:462 _al_d3d_sync_bitmap [ 2.03413] _al_d3d_sync_bitmap (video) ref count == 2 211d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_bmp.cpp:457 _al_d3d_sync_bitmap [ 2.04110] _al_d3d_sync_bitmap (system) ref count == 1 212d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_bmp.cpp:462 _al_d3d_sync_bitmap [ 2.04154] _al_d3d_sync_bitmap (video) ref count == 1 213dtor D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\dtor.c:214 _al_unregister_destructor [ 2.04207] removed dtor for object 08B98D68 214d3d W d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_bmp.cpp:677 d3d_destroy_bitmap [ 2.04210] d3d_destroy_bitmap: Release video texture failed. 215d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1354 real_choose_bitmap_format [ 2.04315] Fake format 216d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1354 real_choose_bitmap_format [ 2.04318] Fake format 217d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1354 real_choose_bitmap_format [ 2.04320] Fake format 218d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1354 real_choose_bitmap_format [ 2.04321] Fake format 219d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1354 real_choose_bitmap_format [ 2.04323] Fake format 220d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1354 real_choose_bitmap_format [ 2.04325] Fake format 221d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1354 real_choose_bitmap_format [ 2.04326] Fake format 222d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1354 real_choose_bitmap_format [ 2.04328] Fake format 223d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1354 real_choose_bitmap_format [ 2.04330] Fake format 224d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1362 real_choose_bitmap_format [ 2.04331] Alpha doesn't match 225d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1369 real_choose_bitmap_format [ 2.04333] Adapter format is 23 226d3d D d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:1372 real_choose_bitmap_format [ 2.04335] Found a format 227d3d I d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_disp.cpp:2446 _al_d3d_create_bitmap [ 2.04336] Chose bitmap format 9 228d3d E d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\win\d3d_bmp.cpp:310 d3d_create_textures [ 2.04344] d3d_create_textures: Unable to create video texture. 229bitmap W d:\Libraries\build\allegro\src\allegro-5.0.x\allegro-5.0.x\src\bitmap_io.c:221 al_load_bitmap [ 2.04348] Failed loading images/PPlogo.bmp with .bmp handler.

Peter Wang
Member #23
April 2000

The bitmap dimensions (w,h) of PPlogo.bmp may be larger than the maximum texture size supported by your video card.

Edgar Reynaldo
Major Reynaldo
May 2007
avatar

Well, al_clone_bitmap changed sometime between 5.0.2 and the current 5.1 SVN, but both versions return NULL if their call to al_create_bitmap returned NULL. It does look like the bitmap is too large to be made into a video bitmap, because both of your allegro.log files say 'd3d_create_textures: Unable to create video texture.'. However, that still doesn't explain why al_clone_bitmap would segfault...

Phrasz said:

An interesting tidbit: When I place the d3d9.dll from system32 into the debug folder the errors change slightly

That's just because d3d9.dll was found in a different place. Don't worry about that bit.

What does the function stack look like when you link to the debugging version of allegro? It should give you a line number inside of al_clone_bitmap.

Also, the code you showed in that image doesn't change the new bitmap flags between al_load_bitmap and al_clone_bitmap, so you're doing the same thing twice for nothing.

allegro.log said:

Failed loading images/PPlogo.bmp with .bmp handler.

The image you posted shows you loading PPlogo.tga, not .bmp, and it also doesn't abort if membitmap was NULL, so you could be passing a NULL pointer to al_clone_bitmap, which would cause a segfault. al_clone_bitmap should have an ASSERT(bitmap) in there, like Allegro 4 did everywhere.

Peter Wang
Member #23
April 2000

al_clone_bitmap should have an ASSERT(bitmap) in there

Done in 5.1, will backport later.

Phrasz
Member #10,091
August 2008

Thanks guys.

Peter: I think I'm going to lean towards your thoughts on the texture size. The laptop is an old Dell 700m Inspirion, which barely supports the intel extreme 2 graphics drivers.

Edgar: Again I concur with the too large bit maps.

The images them self are 1280x720, and even though the display adpater supports 1280 x 800, the video memory probablly does not support images that large.

A side note on tga vs bmp: I thought the issue was with a tga file I had, but it was replaced by the bmp. There's no difference in results with one file format or the other...

I'll look at the new bitmap example. I'm really just hacking and slashing code here, because I'm a hardware guy brute forcing software ^_^.

I'll try to get to using smaller issues sometime soon. Thanks again guys!

Edgar Reynaldo
Major Reynaldo
May 2007
avatar

I think you missed part of what I was saying - the code you showed in that last image does not check if any of the bitmaps are NULL upon loading. If your program is being run from a different directory then they could easily fail to load if you don't account for it by changing the current directory. So if they fail to load, then you are passing NULL bitmaps to al_clone_bitmap, and that would cause it to segfault.

For finding the maximum texture size, you can use al_get_new_display_option to query the maximum texture size :

// create display
ALLEGRO_DISPLAY* display = al_create_display(800,600);
if (!display) {return 1;}

int maxtexturesize = al_get_new_display_option(ALLEGRO_MAX_BITMAP_SIZE , 0);

Why isn't there ALLEGRO_MAX_BITMAP_WIDTH and ALLEGRO_MAX_BITMAP_HEIGHT?

Elias
Member #358
May 2000

Why isn't there ALLEGRO_MAX_BITMAP_WIDTH and ALLEGRO_MAX_BITMAP_HEIGHT?

They would always be the same.

--
"Either help out or stop whining" - Evert

Edgar Reynaldo
Major Reynaldo
May 2007
avatar

I don't quite understand that. Is there just a set limit of bytes available per texture? If so, why couldn't you vary the dimensions as long as the area was less than the max? Or do cards prefer square textures? That seems silly. I guess I just don't understand the inner workings of graphics cards...

Arthur Kalliokoski
Second in Command
February 2005
avatar

Quote:

The texture size constraints come in mainly from precision constraints, due to chip area constrains. It's much more expensive to support larger texture sizes because of the adders and multipliers that are needed for addressing (and addressing textures is very complex!). You also incur a cost in terms of cache tag size.

[1]

They all watch too much MSNBC... they get ideas.

Elias
Member #358
May 2000

So basically has to do with how shaders can sample an u/v position within a texture. And since you could always set the texture transform to rotate 90 degree, it wouldn't make too much sense to have a different limit for u than for v. What I guess could happen (purely speculating now) is that some HW would be able to handle a 2048 x 8192 texture as well as a 8192 x 2048 texture but not a 8192 x 8192 texture. However what would you return for MAX_W and MAX_H in that case?

So for simplicity we just return the size where you're guaranteed that a square texture (and anything smaller) will work.

--
"Either help out or stop whining" - Evert

Go to: