projects
/
platform
/
upstream
/
VK-GL-CTS.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36aae06
)
Fix -Wconversion warning in mutable render buffer tests
author
Pyry Haulos
<phaulos@google.com>
Thu, 19 May 2016 18:07:31 +0000
(11:07 -0700)
committer
Pyry Haulos
<phaulos@google.com>
Thu, 19 May 2016 18:07:31 +0000
(11:07 -0700)
Change-Id: I55e2c219baff1d676e7f232fcfa0496c12371f07
modules/egl/teglMutableRenderBufferTests.cpp
patch
|
blob
|
history
diff --git
a/modules/egl/teglMutableRenderBufferTests.cpp
b/modules/egl/teglMutableRenderBufferTests.cpp
index
2fd036b
..
934a18a
100644
(file)
--- a/
modules/egl/teglMutableRenderBufferTests.cpp
+++ b/
modules/egl/teglMutableRenderBufferTests.cpp
@@
-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)
{