Fix -Wconversion warning in mutable render buffer tests
authorPyry Haulos <phaulos@google.com>
Thu, 19 May 2016 18:07:31 +0000 (11:07 -0700)
committerPyry Haulos <phaulos@google.com>
Thu, 19 May 2016 18:07:31 +0000 (11:07 -0700)
Change-Id: I55e2c219baff1d676e7f232fcfa0496c12371f07

modules/egl/teglMutableRenderBufferTests.cpp

index 2fd036b..934a18a 100644 (file)
@@ -179,7 +179,7 @@ void MutableRenderBufferTest::deinit (void)
 deUint32 MutableRenderBufferTest::drawAndSwap (const Library& egl, deUint32 color, bool flush)
 {
        DE_ASSERT(color < 256);
-       m_gl.clearColor(color/255.f, color/255.f, color/255.f, color/255.f);
+       m_gl.clearColor((float)color/255.f, (float)color/255.f, (float)color/255.f, (float)color/255.f);
        m_gl.clear(GL_COLOR_BUFFER_BIT);
        if (flush)
        {