ソースを参照

Check if depth matches for color attachments on a multi-render texture

BearishSun 9 年 前
コミット
7ef898083a
1 ファイル変更2 行追加0 行削除
  1. 2 0
      Source/BansheeCore/Source/BsRenderTexture.cpp

+ 2 - 0
Source/BansheeCore/Source/BsRenderTexture.cpp

@@ -154,11 +154,13 @@ namespace bs
 
 			if (curTexProps.getWidth() != firstTexProps.getWidth() ||
 				curTexProps.getHeight() != firstTexProps.getHeight() ||
+				curTexProps.getDepth() != firstTexProps.getDepth() ||
 				curMsCount != firstMsCount ||
 				curNumSlices != firstNumSlices)
 			{
 				String errorInfo = "\nWidth: " + toString(curTexProps.getWidth()) + "/" + toString(firstTexProps.getWidth());
 				errorInfo += "\nHeight: " + toString(curTexProps.getHeight()) + "/" + toString(firstTexProps.getHeight());
+				errorInfo += "\nDepth: " + toString(curTexProps.getDepth()) + "/" + toString(firstTexProps.getDepth());
 				errorInfo += "\nNum. slices: " + toString(curNumSlices) + "/" + toString(firstNumSlices);
 				errorInfo += "\nMultisample Count: " + toString(curMsCount) + "/" + toString(firstMsCount);