瀏覽代碼

AL1616: Fix cut-and-paste bug

One of the PACK_COLOR_88 cases was left over from copying
_mesa_texstore_al88 to _mesa_texstore_al1616.
tags/mesa_7_7_rc1
Ian Romanick 16 年之前
父節點
當前提交
70dca0c273
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. 2
    2
      src/mesa/main/texstore.c

+ 2
- 2
src/mesa/main/texstore.c 查看文件

@@ -2198,8 +2198,8 @@ _mesa_texstore_al1616(TEXSTORE_PARAMS)
if (dstFormat == MESA_FORMAT_AL1616) {
for (col = 0; col < srcWidth; col++) {
/* src[0] is luminance, src[1] is alpha */
dstUI[col] = PACK_COLOR_88( FLOAT_TO_USHORT(src[1]),
FLOAT_TO_USHORT(src[0]) );
dstUI[col] = PACK_COLOR_1616( FLOAT_TO_USHORT(src[1]),
FLOAT_TO_USHORT(src[0]) );
src += 2;
}
}

Loading…
取消
儲存