display-kmscube: Render full video buffer
authorNikhil Devshatwar <nikhil.nd@ti.com>
Wed, 3 Sep 2014 11:31:46 +0000 (17:01 +0530)
committerNikhil 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>
util/display-kmscube.c

index 9a4d00aaaecd21c3e528d0ee562e8f8e6d8d10e8..0c00d67cb64760d646b4f55b7c855597a58acfd3 100644 (file)
@@ -555,35 +555,35 @@ static void draw(struct display_kmscube *disp_kmsc)
 
        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 */