summaryrefslogtreecommitdiff
path: root/tests/fbo
diff options
context:
space:
mode:
authorNeha Bhende <bhenden@vmware.com>2017-07-21 13:52:00 -0600
committerBrian Paul <brianp@vmware.com>2017-07-24 08:45:44 -0600
commit84c528875537237af5e942c4b9864cdbdc2aa782 (patch)
tree7c439353b4f2196f906e546772e594e646565768 /tests/fbo
parent13fb3e143172ec680aebf1eea7803ca0aa1c2898 (diff)
fbo: Use glLinkProgram after binding attributes to location.
After binding attribute location, test was assuming that attributes are getting bind to specified location without calling glLinkProgram. Sometime it gets lucky that attributes are bind to expected location but sometimes it doesn't. It fixes rendering corruption seen while running this test. Reviewed-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'tests/fbo')
-rw-r--r--tests/fbo/fbo-mrt-new-bind.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/fbo/fbo-mrt-new-bind.c b/tests/fbo/fbo-mrt-new-bind.c
index cba45cfc5..501778bfb 100644
--- a/tests/fbo/fbo-mrt-new-bind.c
+++ b/tests/fbo/fbo-mrt-new-bind.c
@@ -137,6 +137,7 @@ piglit_init(int argc, char **argv)
glBindAttribLocation(prog1, 0, "position");
glBindAttribLocation(prog1, 1, "texture_coord");
+ glLinkProgram(prog1);
if (!piglit_check_gl_error(GL_NO_ERROR)) {
printf("Setup for test failed.\n");