Re: [AD] fix for using transformations without a display and make blending mode a per-display state |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
- To: Coordination of admins/developers of the game programming library Allegro <alleg-developers@xxxxxxxxxx>
- Subject: Re: [AD] fix for using transformations without a display and make blending mode a per-display state
- From: Elias Pschernig <elias.pschernig@xxxxxxxxxx>
- Date: Fri, 05 Mar 2010 15:22:30 +0100
On Fri, 2010-03-05 at 10:46 +1100, Peter Wang wrote:
>
> Does the code in DllMain work?
>
Yes, but that is only used with gcc 3.x and when using DLLs, from what I
understand.
> Anyway, it's only a tiny amount of memory so I think allocating it with
> thread_local_state is even preferable. You don't really need
> memory_display then; just initialise memory_display_storage when the
> rest of the structure is initialised and return &memory_display_storage.
>
True.
--
Elias Pschernig <elias.pschernig@xxxxxxxxxx>