OSDN Git Service

Fix choosing configs with 0 alpha bits.
authorNicolas Capens <capn@google.com>
Sun, 31 May 2015 05:38:47 +0000 (01:38 -0400)
committerNicolas Capens <capn@google.com>
Tue, 2 Jun 2015 21:57:53 +0000 (21:57 +0000)
commite2b31f2fdd0fcd0e73e8c5f57eb8227fcc27b0b7
tree36a4fb4d17c665f3d6f9cb43186548e5417e443e
parent6743bbf11fe876e0ce063802174c416f5fa05ad4
Fix choosing configs with 0 alpha bits.

Configs with 0 alpha bits were not being stored in the set because
the sorting functor did not compare alpha and thus did not achieve
strict ordering. Having separate functors for strict comparison and
sorting by EGL rules fixes it, and also allows to control config ID
assignment. Android expects a config with alpha bits even though not
explicitly requested.

Bug 21538709

Change-Id: I76472e0eb2a8ad9ca39c6e8ce08225d0ce5cef45
Reviewed-on: https://swiftshader-review.googlesource.com/3310
Reviewed-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Keun Soo Yim <yim@google.com>
Reviewed-by: Nicolas Capens <capn@google.com>
Tested-by: Nicolas Capens <capn@google.com>
src/OpenGL/libEGL/Config.cpp
src/OpenGL/libEGL/Config.h