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