Commit 3f439242 by Nicolas Capens

Fix color component defaults.

Bug 21716622 Change-Id: I1e07ee9b8ccfd0bd34af9b1f1d76802f3398f7ca Reviewed-on: https://swiftshader-review.googlesource.com/3442Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com> Reviewed-by: 's avatarNicolas Capens <capn@google.com> Tested-by: 's avatarNicolas Capens <capn@google.com>
parent 9eb8799c
...@@ -225,10 +225,10 @@ namespace sw ...@@ -225,10 +225,10 @@ namespace sw
inline Color<float> Surface::Buffer::read(void *element) const inline Color<float> Surface::Buffer::read(void *element) const
{ {
float r = 1; float r = 0.0f;
float g = 1; float g = 0.0f;
float b = 1; float b = 0.0f;
float a = 1; float a = 1.0f;
switch(format) switch(format)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment