Browse Source

Fixed build error

Christophe Riccio 9 years ago
parent
commit
4ab9776756
1 changed files with 5 additions and 3 deletions
  1. 5 3
      test/gtx/gtx_io.cpp

+ 5 - 3
test/gtx/gtx_io.cpp

@@ -17,9 +17,11 @@ namespace
 			case glm::highp:			os << "uhi"; break;
 			case glm::highp:			os << "uhi"; break;
 			case glm::mediump:			os << "umd"; break;
 			case glm::mediump:			os << "umd"; break;
 			case glm::lowp:				os << "ulo"; break;
 			case glm::lowp:				os << "ulo"; break;
-			case glm::aligned_highp:	os << "ahi"; break;
-			case glm::aligned_mediump:	os << "amd"; break;
-			case glm::aligned_lowp:		os << "alo"; break;
+#			if GLM_HAS_ALIGNED_TYPE
+				case glm::aligned_highp:	os << "ahi"; break;
+				case glm::aligned_mediump:	os << "amd"; break;
+				case glm::aligned_lowp:		os << "alo"; break;
+#			endif
 			}
 			}
 		}
 		}