commit | 60a3d6f76ce30b5ba1c4e4f799423dd708093b5e | [log] [tgz] |
---|---|---|
author | Ben Clayton <headlessclayton@gmail.com> | Tue Feb 26 17:24:46 2019 +0000 |
committer | Ben Clayton <bclayton@google.com> | Wed Feb 27 19:48:56 2019 +0000 |
tree | 2b0b739320062f0c9427b03f786b5e9d01d038df | |
parent | 81be8c6835ef140a909d962d2f8a4d884b3a510e [diff] [blame] |
Fix warnings raised during release builds Bug: b/123933266 Change-Id: If4dc4858c8a81dd5e7b3510a08e7dbae74051483 Reviewed-on: https://swiftshader-review.googlesource.com/c/25556 Reviewed-by: Nicolas Capens <nicolascapens@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com> Tested-by: Ben Clayton <bclayton@google.com>
diff --git a/src/OpenGL/libGLES_CM/Context.cpp b/src/OpenGL/libGLES_CM/Context.cpp index 811234e..45c26ee 100644 --- a/src/OpenGL/libGLES_CM/Context.cpp +++ b/src/OpenGL/libGLES_CM/Context.cpp
@@ -2510,10 +2510,10 @@ { for(int i = 0; i < rect.x1 - rect.x0; i++) { - float r; - float g; - float b; - float a; + float r = 0.f; + float g = 0.f; + float b = 0.f; + float a = 0.f; switch(renderTarget->getExternalFormat()) {