diff options
author | Paul Berry <stereotype441@gmail.com> | 2012-06-02 10:34:32 -0700 |
---|---|---|
committer | Paul Berry <stereotype441@gmail.com> | 2012-06-07 10:58:22 -0700 |
commit | 2b776b9ae040c9f53df897ef4e2715a6f5cff9b4 (patch) | |
tree | 349397ee1e0cc3ef0925698c7d468536283a6d67 /tests/fbo/fbo-clear-formats.c | |
parent | 873ba64f39c6f001e96954b2819c9075161a65d8 (diff) |
fbo: Use format_desc::base_internal_format rather than test_desc::base.
The field test_desc::base has two disadvantages: (1) it is only
populated for depth and depth/stencil formats (for all other formats
it is zero). (2) it misclassifies GL_DEPTH32F_STENCIL8 as having a
base format of GL_DEPTH_COMPONENT, when the correct base format is
GL_DEPTH_STENCIL.
This patch replaces all references to test_desc::base with
format_desc::base_internal_format, which doesn't have either of these
disadvantages.
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
Diffstat (limited to 'tests/fbo/fbo-clear-formats.c')
-rw-r--r-- | tests/fbo/fbo-clear-formats.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/fbo/fbo-clear-formats.c b/tests/fbo/fbo-clear-formats.c index 0cbba3f37..da975dcd9 100644 --- a/tests/fbo/fbo-clear-formats.c +++ b/tests/fbo/fbo-clear-formats.c @@ -407,7 +407,7 @@ test_format(const struct format_desc *format, GLenum baseformat) GLboolean pass = GL_TRUE; printf("Testing %s", format->name); - tex = create_tex(format->internalformat, baseformat); + tex = create_tex(format->internalformat, format->base_internal_format); if (tex == 0) return PIGLIT_SKIP; |