Fixes uninitialized scalar field defect reported by Coverity. Signed-off-by: Vinson Lee <v...@freedesktop.org> --- tests/glean/tpixelformats.h | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-)
diff --git a/tests/glean/tpixelformats.h b/tests/glean/tpixelformats.h index 20641fe..d0edb94 100644 --- a/tests/glean/tpixelformats.h +++ b/tests/glean/tpixelformats.h @@ -42,15 +42,18 @@ class PixelFormatsTest: public MultiTest { public: PixelFormatsTest(const char* testName, const char* filter, - const char *extensions, const char* description) - : MultiTest(testName, filter, extensions, description) + const char *extensions, const char* description): + MultiTest(testName, filter, extensions, description), + alphaBits(0), + defaultAlpha(0), + haveHalfFloat(false), + haveABGR(false), + haveSRGB(false), + haveCombine(false), + haveRG(false), + haveSnorm(false), + haveTexSharedExp(false) { - alphaBits = 0; - defaultAlpha = 0; - haveHalfFloat = false; - haveABGR = false; - haveSRGB = false; - haveCombine = false; } virtual void runOne(MultiTestResult &r, Window &w); -- 1.8.0.2 _______________________________________________ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/piglit