[AD] Allegro Win32 patch for AllegroGL compatability

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


This small patch to the create_directx_window() function sets a flag on
the window class, CS_OWNDC, which allocates a seperate Device Context
for the Allegro window. While this isn't necessary for DirectX to work,
I've found that without it, AllegroGL can create GDI access violations
like crazy with some video cards(So far, Matrox cards have caused them.
TNT did sometimes). It shouldn't bother any other Windows graphics
modes.


John Harger
--------------------------------------
john_h@xxxxxxxxxx
Cross-platform Gaming Center
a.k.a. Cross-platform Game Programming Center
Dedicated to the pursuit of well written code for all platforms.
http://members.xoom.com/_XOOM/blazer1024/index.html

Attachment: patch-3.9.32-wwnd.c
Description: Binary data



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