conversion from "glm::detail::tmat4x4<glm::lowp_float>" to "glm::mat4"

  c++, gl-matrix, glm, glm-math, opengl

I have been following this tutorial creating 2d games with opengl. I have a problem creating an orthogonal projection matrix. I used glm::ortho() as stated in the tutorial. But I have this problem

no suitable user-defined conversion from "glm::detail::tmat4x4glm::lowp_float" to "glm::mat4" exists.
How can I fix this problem?

glm::mat4 projection = glm::ortho(0.0f, static_cast<float>(this->Width), 
    static_cast<float>(this->Height), 0.0f, -1.0f, 1.0f);

Source: Windows Questions C++

LEAVE A COMMENT