[Piglit] [PATCH v2] getteximage-formats: Set pass to true for unsupported formats.

Brian Paul brianp at vmware.com
Thu Dec 13 15:33:08 PST 2012


On 12/13/2012 01:42 PM, Vinson Lee wrote:
> Fixes uninitialized scalar variable defect reported by Coverity.
>
> Signed-off-by: Vinson Lee<vlee at freedesktop.org>
> ---
>   tests/texturing/getteximage-formats.c | 2 ++
>   1 file changed, 2 insertions(+)
>
> diff --git a/tests/texturing/getteximage-formats.c b/tests/texturing/getteximage-formats.c
> index 0e12338..93771dd 100644
> --- a/tests/texturing/getteximage-formats.c
> +++ b/tests/texturing/getteximage-formats.c
> @@ -472,6 +472,8 @@ piglit_display(void)
>   			pass = test_format(set,&set->format[format_index]);
>   		}
>   		else {
> +			/* unsupported format - not a failure */
> +			pass = GL_TRUE;
>   			glClear(GL_COLOR_BUFFER_BIT);
>   			piglit_present_results();
>   		}

Reviewed-by: Brian Paul <brianp at vmware.com>


More information about the Piglit mailing list