Also this requires npot support, or ideally to force the width/height to
be powers of two.

Signed-off-by: Ilia Mirkin <[email protected]>
---

nouveau_vieux only supports 1 draw buffer, so I'm not bothering to fix
the issue with width/height not being POT.

 tests/fbo/fbo-drawbuffers.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/fbo/fbo-drawbuffers.c b/tests/fbo/fbo-drawbuffers.c
index 4b72f27..53aec87 100644
--- a/tests/fbo/fbo-drawbuffers.c
+++ b/tests/fbo/fbo-drawbuffers.c
@@ -165,4 +165,8 @@ piglit_init(int argc, char **argv)
        glGetIntegerv(GL_MAX_DRAW_BUFFERS_ARB, &num);
        if (num < 2)
                piglit_report_result(PIGLIT_SKIP);
+
+       glGetIntegerv(GL_MAX_COLOR_ATTACHMENTS_EXT, &num);
+       if (num < 2)
+               piglit_report_result(PIGLIT_SKIP);
 }
-- 
1.8.5.5

_______________________________________________
Piglit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to