[Piglit] [PATCH] arb_internalformat_query-minmax: initialise buffer_size_in_elements
Dave Airlie
airlied at gmail.com
Tue Apr 16 18:33:28 PDT 2013
From: Dave Airlie <airlied at redhat.com>
Since we never bail on the first failure in this test, we can return
from the GetInternalformativ without buffer_size_in_elements ever
being touched, due to misc GL error (mesa_base_fbo_format fails),
this then causes us to loop a lot later and print error messages
than make piglit eat all the pies^WRAM.
Signed-off-by: Dave Airlie <airlied at redhat.com>
---
tests/spec/arb_internalformat_query/minmax.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/tests/spec/arb_internalformat_query/minmax.c b/tests/spec/arb_internalformat_query/minmax.c
index 2f8043d..c15b954 100644
--- a/tests/spec/arb_internalformat_query/minmax.c
+++ b/tests/spec/arb_internalformat_query/minmax.c
@@ -103,7 +103,7 @@ try(GLenum target, GLenum format, GLint max_samples,
{
bool pass = true;
GLint *buffer;
- int buffer_size_in_elements;
+ int buffer_size_in_elements = 0;
size_t buffer_size_in_bytes;
unsigned i;
GLint previous;
--
1.7.1
More information about the Piglit
mailing list