Added assert on input values for glm::perspective
This commit is contained in:
@@ -238,6 +238,9 @@ namespace glm
|
||||
valType const & zFar
|
||||
)
|
||||
{
|
||||
assert(aspect != valType(0));
|
||||
assert(zFar != zNear);
|
||||
|
||||
#ifdef GLM_FORCE_RADIANS
|
||||
valType const rad = fovy;
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user