mesa/main: Don't use ONCE_FLAG_INIT as a r-value.
authorJose Fonseca <jfonseca@vmware.com>
Thu, 11 Jun 2015 12:32:21 +0000 (13:32 +0100)
committerJose Fonseca <jfonseca@vmware.com>
Thu, 11 Jun 2015 12:35:23 +0000 (13:35 +0100)
commit9fed4f9bf5146af1fcd093422b39353845f2267a
treef6d25fef9b6f420a5f814626c3ff732404279292
parent0f1fe649b7fdfb3ab8c7b14e642bc0e3831fc092
mesa/main: Don't use ONCE_FLAG_INIT as a r-value.

It should only be used as an initializer expression.

Trivial, and fixes Windows builds.

Nevertheless, overwriting an once_flag like this seems dangerous and
should be revised.
src/mesa/main/formats.c