"include/svn:/svn.code.sf.net/p/irrlicht/code/trunk@3721" did not exist on "667a64e566e1ef1bd52d4492bc73deaa418eb9c9"
Commit 4873ecf3 authored by irrlicht's avatar irrlicht

removed some warnings when doing double/float conversions

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@695 dfc29bdd-3216-0410-991c-e03cc46cb475
parent e9a8b885
......@@ -1166,7 +1166,7 @@ namespace core
inline void CMatrix4<T>::buildProjectionMatrixPerspectiveFovLH(f32 fieldOfViewRadians, f32 aspectRatio, f32 zNear, f32 zFar)
{
f64 h = 1.0/tan(fieldOfViewRadians/2.0);
T w = h / aspectRatio;
T w = (T)(h / aspectRatio);
M[0] = w;
M[1] = 0;
......
......@@ -58,7 +58,7 @@ void COpenGLExtensionHandler::dump() const
void COpenGLExtensionHandler::initExtensions(bool stencilBuffer)
{
const f32 ver = atof((c8*)glGetString(GL_VERSION));
const f32 ver = (f32)atof((c8*)glGetString(GL_VERSION));
Version = core::floor32(ver)*100+(s32)(ver-floor(ver));
if ( Version >= 102)
os::Printer::log("OpenGL driver version is 1.2 or better.", ELL_INFORMATION);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment