wined3d: Simplify context_choose_pixel_format().
commit81ae0cea7c56aa6a472dbf43f6c9d89bfc5ff612
authorHenri Verbeet <hverbeet@codeweavers.com>
Tue, 8 Nov 2011 19:48:57 +0000 (8 20:48 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 9 Nov 2011 10:34:19 +0000 (9 11:34 +0100)
tree2b0d0c66fe9fc4c26756200d8d7f2e67c08a1bc0
parent0ba5f7dd983986f40e702f5f775611fbfd6ad088
wined3d: Simplify context_choose_pixel_format().

Simply rank the formats instead of doing multiple passes over the list.
dlls/wined3d/context.c
dlls/wined3d/directx.c
dlls/wined3d/wined3d_private.h