From: Lukas S. <lo...@gm...> - 2001-01-30 01:48:07
|
Hi everyone! I am having some problems using GFX_DIRECTX_WIN in Win2k; The following Program crahses somewhere inside the blit - operation: ----- #include <allegro.h> #include <winalleg.h> int main() { BITMAP *target; allegro_init(); install_keyboard(); set_color_depth(32); set_gfx_mode(GFX_DIRECTX_WIN,640,480,0,0); target=create_bitmap_ex(32,640,480); rectfill(target,0,0,10,10,0xffff); blit(target,screen,0,0,0,0,640,480); while(!key[KEY_Q])Sleep(0); destroy_bitmap(target); return 0; } END_OF_MAIN() ----- I am using a desktop-color-depth of 32 bit and Win2k SP1. Nor "target" neither "screen" is NULL at the time of the blit operation. "test.exe" also crashes with GFX_DIRECTX_WIN. If I use any other GFX_... , it works perfectly, even with GFX_DIRECTX_OVL, which of course makes GFX_DIRECTX_WIN useless on my computer (PIII 650, Notebook with an ATI Rage LT Pro 2x AGP, 128MB). But as GFX_DIRECTX_OVL is hardware - dependant this could turn out to be a problem on other computers. I first thought that the experimental ATI - Drivers are be the problem, but changing to the standard-drivers did not correct the problem. This is not really vital to my program (a lanscape-rendering-engine), but I do not see a reason for the "access violation". Thanks for reading this far, Lukas |