mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 00:05:36 +00:00
Bug 1577236 - clang-10: Fix -Wimplicit-int-float-conversion warnings in gfx/ r=nical
The change has been reverted involuntary by bug 1574745 Differential Revision: https://phabricator.services.mozilla.com/D47734 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
54a0b260d2
commit
63ab1f2c5b
@ -943,9 +943,9 @@ void CompositorOGL::EndRenderingToNativeLayer() {
|
||||
"BeginRenderingToNativeLayer?");
|
||||
|
||||
if (StaticPrefs::nglayout_debug_widget_update_flashing()) {
|
||||
float r = float(rand()) / RAND_MAX;
|
||||
float g = float(rand()) / RAND_MAX;
|
||||
float b = float(rand()) / RAND_MAX;
|
||||
float r = float(rand()) / float(RAND_MAX);
|
||||
float g = float(rand()) / float(RAND_MAX);
|
||||
float b = float(rand()) / float(RAND_MAX);
|
||||
EffectChain effectChain;
|
||||
effectChain.mPrimaryEffect = new EffectSolidColor(Color(r, g, b, 0.2f));
|
||||
// If we're clipping the render target to the invalid rect, then the
|
||||
|
Loading…
Reference in New Issue
Block a user