From: Nikhil Devshatwar Date: Wed, 3 Sep 2014 11:31:46 +0000 (+0530) Subject: display-kmscube: Render full video buffer X-Git-Url: https://git.ti.com/gitweb?p=glsdk%2Fomapdrmtest.git;a=commitdiff_plain;h=c758b2fa68b76fe5a07066521a7a5e09f2374275 display-kmscube: Render full video buffer 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 --- diff --git a/util/display-kmscube.c b/util/display-kmscube.c index 9a4d00a..0c00d67 100644 --- a/util/display-kmscube.c +++ b/util/display-kmscube.c @@ -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 */