summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2009-04-10 10:04:31 +0100
committerJosé Fonseca <[email protected]>2009-04-10 13:26:35 +0100
commit2921a4903378e2bfc461322a5443cc013e7414c9 (patch)
tree8724b75d0674554ec06d4da1d1a210f0deb9219e /src/gallium/state_trackers
parent0dd81ec97b4fd88fa9267f409a115a98344bc2fe (diff)
stw: Reorder the pixelformats, so that no alpha pixelformats get chosen before alpha.
Some applications might not handle a alpha visual when when they did not request for one.
Diffstat (limited to 'src/gallium/state_trackers')
-rw-r--r--src/gallium/state_trackers/wgl/shared/stw_pixelformat.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/gallium/state_trackers/wgl/shared/stw_pixelformat.c b/src/gallium/state_trackers/wgl/shared/stw_pixelformat.c
index 543ed3d54d5..bb4009f1b41 100644
--- a/src/gallium/state_trackers/wgl/shared/stw_pixelformat.c
+++ b/src/gallium/state_trackers/wgl/shared/stw_pixelformat.c
@@ -44,15 +44,15 @@ stw_add_standard_pixelformats(
{
struct stw_pixelformat_info *pf = *ppf;
struct stw_pixelformat_color_info color24 = { 8, 0, 8, 8, 8, 16 };
- struct stw_pixelformat_alpha_info alpha8 = { 8, 24 };
struct stw_pixelformat_alpha_info noalpha = { 0, 0 };
+ struct stw_pixelformat_alpha_info alpha8 = { 8, 24 };
struct stw_pixelformat_depth_info depth24s8 = { 24, 8 };
struct stw_pixelformat_depth_info depth16 = { 16, 0 };
pf->flags = STW_PF_FLAG_DOUBLEBUFFER | flags;
pf->color = color24;
- pf->alpha = alpha8;
- pf->depth = depth16;
+ pf->alpha = noalpha;
+ pf->depth = depth24s8;
pf++;
pf->flags = STW_PF_FLAG_DOUBLEBUFFER | flags;
@@ -69,14 +69,14 @@ stw_add_standard_pixelformats(
pf->flags = STW_PF_FLAG_DOUBLEBUFFER | flags;
pf->color = color24;
- pf->alpha = noalpha;
- pf->depth = depth24s8;
+ pf->alpha = alpha8;
+ pf->depth = depth16;
pf++;
pf->flags = flags;
pf->color = color24;
- pf->alpha = alpha8;
- pf->depth = depth16;
+ pf->alpha = noalpha;
+ pf->depth = depth24s8;
pf++;
pf->flags = flags;
@@ -93,8 +93,8 @@ stw_add_standard_pixelformats(
pf->flags = flags;
pf->color = color24;
- pf->alpha = noalpha;
- pf->depth = depth24s8;
+ pf->alpha = alpha8;
+ pf->depth = depth16;
pf++;
*ppf = pf;