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:
3f4cf9e
)
Fix random viewport calculation in lifetime tests.
author
Mika Isojärvi
<misojarvi@google.com>
Mon, 13 Apr 2015 20:54:16 +0000
(13:54 -0700)
committer
Mika Isojärvi
<misojarvi@google.com>
Mon, 13 Apr 2015 20:54:16 +0000
(13:54 -0700)
Bug:
20177344
Change-Id: I9e0043642ad63257b663823c99a8ea01118138f7
modules/glshared/glsLifetimeTests.cpp
patch
|
blob
|
history
diff --git
a/modules/glshared/glsLifetimeTests.cpp
b/modules/glshared/glsLifetimeTests.cpp
index
e1c59ad
..
2332bae
100644
(file)
--- a/
modules/glshared/glsLifetimeTests.cpp
+++ b/
modules/glshared/glsLifetimeTests.cpp
@@
-494,9
+494,9
@@
Rectangle randomViewport (const RenderContext& ctx, GLint maxWidth, GLint maxHei
{
const RenderTarget& target = ctx.getRenderTarget();
const GLint width = de::min(target.getWidth(), maxWidth);
- const GLint xOff = rnd.getInt(0,
width - maxW
idth);
+ const GLint xOff = rnd.getInt(0,
target.getWidth() - w
idth);
const GLint height = de::min(target.getHeight(), maxHeight);
- const GLint yOff = rnd.getInt(0,
height - maxH
eight);
+ const GLint yOff = rnd.getInt(0,
target.getHeight() - h
eight);
return Rectangle(xOff, yOff, width, height);
}