summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 41c8134)
raw | patch | inline | side by side (parent: 41c8134)
author | Nikhil Devshatwar <nikhil.nd@ti.com> | |
Wed, 3 Sep 2014 11:31:46 +0000 (17:01 +0530) | ||
committer | Nikhil Devshatwar <nikhil.nd@ti.com> | |
Wed, 1 Oct 2014 08:38:31 +0000 (14:08 +0530) |
The co-ordinates of texture values only use the 80% of the buffer as texture
Due to this, cropped video gets displayed
Fix this by changing the co-ordinates to 100%
Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
Due to this, cropped video gets displayed
Fix this by changing the co-ordinates to 100%
Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
util/display-kmscube.c | patch | blob | history |
diff --git a/util/display-kmscube.c b/util/display-kmscube.c
index 9a4d00aaaecd21c3e528d0ee562e8f8e6d8d10e8..0c00d67cb64760d646b4f55b7c855597a58acfd3 100644 (file)
--- a/util/display-kmscube.c
+++ b/util/display-kmscube.c
static const GLfloat vTexUVs[] = {
// front
- 0.1f, 0.9f,
- 0.9f, 0.9f,
- 0.1f, 0.1f,
- 0.9f, 0.1f,
+ 0.0f, 1.0f,
+ 1.0f, 1.0f,
+ 0.0f, 0.0f,
+ 1.0f, 0.0f,
// back
- 0.1f, 0.9f,
- 0.9f, 0.9f,
- 0.1f, 0.1f,
- 0.9f, 0.1f,
+ 0.0f, 1.0f,
+ 1.0f, 1.0f,
+ 0.0f, 0.0f,
+ 1.0f, 0.0f,
// right
- 0.1f, 0.9f,
- 0.9f, 0.9f,
- 0.1f, 0.1f,
- 0.9f, 0.1f,
+ 0.0f, 1.0f,
+ 1.0f, 1.0f,
+ 0.0f, 0.0f,
+ 1.0f, 0.0f,
// left
- 0.1f, 0.9f,
- 0.9f, 0.9f,
- 0.1f, 0.1f,
- 0.9f, 0.1f,
+ 0.0f, 1.0f,
+ 1.0f, 1.0f,
+ 0.0f, 0.0f,
+ 1.0f, 0.0f,
// top
- 0.1f, 0.9f,
- 0.9f, 0.9f,
- 0.1f, 0.1f,
- 0.9f, 0.1f,
+ 0.0f, 1.0f,
+ 1.0f, 1.0f,
+ 0.0f, 0.0f,
+ 1.0f, 0.0f,
// bottom
- 0.1f, 0.9f,
- 0.9f, 0.9f,
- 0.1f, 0.1f,
- 0.9f, 0.1f,
+ 0.0f, 1.0f,
+ 1.0f, 1.0f,
+ 0.0f, 0.0f,
+ 1.0f, 0.0f,
};
/* clear the color buffer */