瀏覽代碼

wgl: Include alpha bits in pixel format's cColorBits field.

tags/mesa_7_6_rc1
José Fonseca 16 年之前
父節點
當前提交
6b89c35c9f
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      src/gallium/state_trackers/wgl/shared/stw_pixelformat.c

+ 1
- 1
src/gallium/state_trackers/wgl/shared/stw_pixelformat.c 查看文件

@@ -158,7 +158,7 @@ stw_pixelformat_add(
pfi->pfd.iPixelType = PFD_TYPE_RGBA;

pfi->pfd.cColorBits = color->bits.red + color->bits.green + color->bits.blue;
pfi->pfd.cColorBits = color->bits.red + color->bits.green + color->bits.blue + color->bits.alpha;
pfi->pfd.cRedBits = color->bits.red;
pfi->pfd.cRedShift = color->shift.red;
pfi->pfd.cGreenBits = color->bits.green;

Loading…
取消
儲存