Compile error building Ogre::RTShaderSystem

Description

Please see Environment for CMake build parameters.

Getting compilation error:
Components/RTShaderSystem/src/OgreShaderFFPTexturing.cpp:658:79: error: no matching conversion for functional-style cast from
'const float *' to 'Ogre::Vector4'
curFuncInvocation->pushOperand(ParameterFactory::createConstParam(Vector4(colourValue.ptr())), Operand::OPS_IN);

Thing is, that I am using double presision in Ogre. So, Ogre::Real is double, not float. So, that Vector4 constructor accepts double[4] in this case, not float[4]. And colourValue.ptr() returns exactly float[4]

Environment

Commit: 2852667eb60cf3db0f92b93be58b8ffe0ee69b92

Ogre project was generated with such variables:
-DOGRE_CONFIG_DOUBLE=ON
-DOGRE_BUILD_COMPONENT_RTSHADERSYSTEM=TRUE
-DOGRE_BUILD_RTSHADERSYSTEM_CORE_SHADERS=ON
-DOGRE_BUILD_RTSHADERSYSTEM_EXT_SHADERS=ON

Activity

Former user 
January 5, 2018 at 11:21 AM

created pull request for this
https://github.com/OGRECave/ogre/pull/622

Fixed

Details

Assignee

Reporter

Components

Priority

Created January 5, 2018 at 11:13 AM
Updated January 7, 2018 at 12:57 AM
Resolved January 7, 2018 at 12:57 AM