# always alpha == 0xFF

**URL:** <https://community.khronos.org/t/always-alpha-0xff/24952>\
**Category:** OpenGL: Basic Coding\
**Created:** [November 8, 2001, 12:00am UTC](https://community.khronos.org/t/always-alpha-0xff/24952 "2001-11-08T00:00:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://community.khronos.org/uploads/default/original/2X/b/ba89cb49313a0e869198c8be354afde8bcae027e.png) [@system](https://community.khronos.org/u/system)\
**Post date:** [November 8, 2001, 12:00am UTC](https://community.khronos.org/t/always-alpha-0xff/24952/1 "2001-11-08T00:00:00Z")

</div>

Why alpha values in framebuffers are always 0xFF in double buffer mode? however, they are all right in single buffer.

---

<div class="post-metadata">

**Author:** ![j111](https://community.khronos.org/letter_avatar_proxy/v4/letter/j/50afbb/32.png) [@j111](https://community.khronos.org/u/j111)\
**Post date:** [November 8, 2001, 9:09am UTC](https://community.khronos.org/t/always-alpha-0xff/24952/2 "2001-11-08T09:09:00Z")

</div>

Probably because when you are in double buffered mode you are in fullscreen using 16-bit color, which doesn’t support a destination alpha channel. In single buffered mode, you are probably in a window using 32-bit color, which does support a destination alpha channel.

j

---

<div class="post-metadata">

**Author:** ![system](https://community.khronos.org/uploads/default/original/2X/b/ba89cb49313a0e869198c8be354afde8bcae027e.png) [@system](https://community.khronos.org/u/system)\
**Post date:** [November 8, 2001, 2:35pm UTC](https://community.khronos.org/t/always-alpha-0xff/24952/3 "2001-11-08T14:35:00Z")

</div>

Thank you j, I used the same program to exam this problem, the only difference is to change PIXELFORMATDESCRIPTOR to support double duffers, Does not OpenGL supported the destination alpha channel in double buffer mode? (Hardware : GeForce3, Platform: Win2000)

---

<div class="post-metadata">

**Author:** ![system](https://community.khronos.org/uploads/default/original/2X/b/ba89cb49313a0e869198c8be354afde8bcae027e.png) [@system](https://community.khronos.org/u/system)\
**Post date:** [November 10, 2001, 6:47pm UTC](https://community.khronos.org/t/always-alpha-0xff/24952/4 "2001-11-10T18:47:00Z")

</div>

Use DescribePixelFormat and check out if you have 32 bits for pixeldepth.

V-man

---

<div class="post-metadata">

**Author:** ![dorbie](https://community.khronos.org/user_avatar/community.khronos.org/dorbie/32/53_2.png) [@dorbie](https://community.khronos.org/u/dorbie)\
**Post date:** [November 10, 2001, 11:57pm UTC](https://community.khronos.org/t/always-alpha-0xff/24952/5 "2001-11-10T23:57:00Z")

</div>

Geforce3 is an awesome card, you can bet it has destination alpha double buffered. You need to choose the right pixel format descriptor.
