Skip to content

Commit

Permalink
Components (Overlay & RTS): Fix compiling issues regarding mismatch a…
Browse files Browse the repository at this point in the history
…nd ambiguous between float and double.
  • Loading branch information
n3rd0x authored and paroj committed Aug 23, 2021
1 parent fe1aa1b commit 4935786
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Components/Overlay/src/OgreFont.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ namespace Ogre
(Real)m / (Real)finalHeight, // v1
(Real)(l + width) / (Real)finalWidth, // u2
(m + max_height) / (Real)finalHeight); // v2
this->setGlyphInfo({cp, uvs, textureAspect * uvs.width() / uvs.height(),
this->setGlyphInfo({cp, uvs, float(textureAspect * uvs.width() / uvs.height()),
float(x_bearing) / max_height, float(advance) / max_height});

// Advance a column
Expand Down
2 changes: 1 addition & 1 deletion Components/RTShaderSystem/src/OgreShaderProgram.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ UniformParameterPtr Program::resolveAutoParameterReal(GpuProgramParameters::Auto
}

// Create new parameter.
param = UniformParameterPtr(OGRE_NEW UniformParameter(autoType, data, size));
param = UniformParameterPtr(OGRE_NEW UniformParameter(autoType, float(data), size));
addParameter(param);

return param;
Expand Down

0 comments on commit 4935786

Please sign in to comment.