egl/x11: Declare EGLConfig attrib array inside loop
authorChad Versace <chadversary@chromium.org>
Thu, 22 Jun 2017 18:00:41 +0000 (11:00 -0700)
committerChad Versace <chadversary@chromium.org>
Thu, 22 Jun 2017 19:35:49 +0000 (12:35 -0700)
commita6fad5596141667b0986f083996b05ca829d1f45
tree7d815c0f403525c9b202288a08e3323ad3c3072b
parentf8ad7f405492ae1b6b035dd41b6b4b77be51f719
egl/x11: Declare EGLConfig attrib array inside loop

No behavioral change. Just a readability cleanup.

Instead of modifying this small array on each loop iteration, we now
initialize it in-place with the values it needs.

Reviewed-by: Eric Engestrom <eric@engestrom.ch>
src/egl/drivers/dri2/platform_x11.c