瀏覽代碼

Fixed RCP operands count. (#1431)

if we have the wrong RCP operands count, bgfx::read will return the wrong size and the library will crush.
Eugeny Novikov 7 年之前
父節點
當前提交
a10c536af4
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/shader_dxbc.cpp

+ 1 - 1
src/shader_dxbc.cpp

@@ -147,7 +147,7 @@ namespace bgfx
 		{ 5, 0 }, // GATHER4_C
 		{ 5, 0 }, // GATHER4_PO
 		{ 0, 0 }, // GATHER4_PO_C
-		{ 0, 0 }, // RCP
+		{ 2, 0 }, // RCP
 		{ 0, 0 }, // F32TOF16
 		{ 0, 0 }, // F16TOF32
 		{ 0, 0 }, // UADDC