Procházet zdrojové kódy

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

BearishSun před 9 roky
rodič
revize
7ef898083a
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  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() ||
 			if (curTexProps.getWidth() != firstTexProps.getWidth() ||
 				curTexProps.getHeight() != firstTexProps.getHeight() ||
 				curTexProps.getHeight() != firstTexProps.getHeight() ||
+				curTexProps.getDepth() != firstTexProps.getDepth() ||
 				curMsCount != firstMsCount ||
 				curMsCount != firstMsCount ||
 				curNumSlices != firstNumSlices)
 				curNumSlices != firstNumSlices)
 			{
 			{
 				String errorInfo = "\nWidth: " + toString(curTexProps.getWidth()) + "/" + toString(firstTexProps.getWidth());
 				String errorInfo = "\nWidth: " + toString(curTexProps.getWidth()) + "/" + toString(firstTexProps.getWidth());
 				errorInfo += "\nHeight: " + toString(curTexProps.getHeight()) + "/" + toString(firstTexProps.getHeight());
 				errorInfo += "\nHeight: " + toString(curTexProps.getHeight()) + "/" + toString(firstTexProps.getHeight());
+				errorInfo += "\nDepth: " + toString(curTexProps.getDepth()) + "/" + toString(firstTexProps.getDepth());
 				errorInfo += "\nNum. slices: " + toString(curNumSlices) + "/" + toString(firstNumSlices);
 				errorInfo += "\nNum. slices: " + toString(curNumSlices) + "/" + toString(firstNumSlices);
 				errorInfo += "\nMultisample Count: " + toString(curMsCount) + "/" + toString(firstMsCount);
 				errorInfo += "\nMultisample Count: " + toString(curMsCount) + "/" + toString(firstMsCount);