The build fails in TextureMapperShaderProgram.cpp when building with Clang at the following code: http://trac.webkit.org/browser/trunk/Source/WebCore/platform/graphics/texmap/TextureMapperShaderProgram.cpp#L76 The errors being thrown out: ../../Source/WebCore/platform/graphics/texmap/TextureMapperShaderProgram.cpp:81:9: error: non-constant-expression cannot be narrowed from type 'double' to 'GC3Dfloat' (aka 'float') in initializer list matrix.m11(), matrix.m12(), matrix.m13(), matrix.m14(), ^~~~~~~~~~~~ ../../Source/WebCore/platform/graphics/texmap/TextureMapperShaderProgram.cpp:81:9: note: override this message by inserting an explicit cast matrix.m11(), matrix.m12(), matrix.m13(), matrix.m14(), ^~~~~~~~~~~~ static_cast<)C3Dfloat>( ../../Source/WebCore/platform/graphics/texmap/TextureMapperShaderProgram.cpp:81:23: error: non-constant-expression cannot be narrowed from type 'double' to 'GC3Dfloat' (aka 'float') in initializer list matrix.m11(), matrix.m12(), matrix.m13(), matrix.m14(), ^~~~~~~~~~~~ ../../Source/WebCore/platform/graphics/texmap/TextureMapperShaderProgram.cpp:81:23: note: override this message by inserting an explicit cast matrix.m11(), matrix.m12(), matrix.m13(), matrix.m14(), ^~~~~~~~~~~~ static_cast<)C3Dfloat>( (... and so on for the other 14 arguments as well).
Created attachment 187358 [details] Patch
implicit constructors would also work, without an additional "as" function: GC3Dfloat(double)
(In reply to comment #2) > implicit constructors would also work, without an additional "as" function: > GC3Dfloat(double) I guess you meant explicit constructors. They work indeed, I'll upload a patch with those being used.
Created attachment 187470 [details] Patch
Comment on attachment 187470 [details] Patch Clearing flags on attachment: 187470 Committed r142392: <http://trac.webkit.org/changeset/142392>
All reviewed patches have been landed. Closing bug.