diff options
author | Ian Romanick <ian.d.romanick@intel.com> | 2019-03-08 18:47:40 -0800 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2019-06-26 08:31:49 -0700 |
commit | c7fcd8ee2b3664478f7129e05ede6d442c09185f (patch) | |
tree | a62090c6d07cdbf9415dd33c407c3d47e8038a77 | |
parent | e7314f3386e1210165bc3d9e19bf29782541d3f0 (diff) |
fbo-integer: Don't require rendering to GL_RGB_INTEGER_EXT
The RGB base formats aren't required. Don't report failure if the
driver reports GL_FRAMEBUFFER_UNSUPPORTED_EXT.
Cc: Vinson Lee <vlee@freedesktop.org>
Cc: Brian Paul <brianp@vmware.com>
-rw-r--r-- | tests/fbo/fbo-integer.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/fbo/fbo-integer.c b/tests/fbo/fbo-integer.c index 4461ee039..27e4323af 100644 --- a/tests/fbo/fbo-integer.c +++ b/tests/fbo/fbo-integer.c @@ -192,8 +192,13 @@ test_fbo(const struct format_info *info) status = glCheckFramebufferStatus(GL_FRAMEBUFFER_EXT); if (status != GL_FRAMEBUFFER_COMPLETE_EXT) { - fprintf(stderr, "%s: failure: framebuffer incomplete.\n", TestName); - return GL_FALSE; + if (status == GL_FRAMEBUFFER_UNSUPPORTED_EXT && + info->BaseFormat == GL_RGB_INTEGER_EXT) { + return GL_TRUE; + } else { + fprintf(stderr, "%s: failure: framebuffer incomplete.\n", TestName); + return GL_FALSE; + } } |