egl: initialise dummy_thread via _eglInitThreadInfo
authorEmil Velikov <emil.velikov@collabora.com>
Tue, 25 Apr 2017 16:07:46 +0000 (17:07 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Sat, 29 Apr 2017 13:40:53 +0000 (14:40 +0100)
commita5c6ca96025d8127263caea1d47b75a25ab33d5a
treed16fddd2eeecdcd69962b37da75975416b157ede
parente5efaeb85c32c5c825c6adc3b394ba0860d81147
egl: initialise dummy_thread via _eglInitThreadInfo

Considering we cannot make dummy_thread a constant we might as well,
initialise by the same function that handles the actual thread info.

This way we don't need to worry about mismatch between the initialiser
and initialising function.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
src/egl/main/eglcurrent.c