diff options
author | Eric Engestrom <[email protected]> | 2017-06-15 23:53:54 +0100 |
---|---|---|
committer | Eric Engestrom <[email protected]> | 2017-06-16 11:02:05 +0100 |
commit | 4ca9ae587c083b6f03feb65b4ce84929109d5d59 (patch) | |
tree | 9aa5a2f73688da6eec2ebf9d901e41f793dd88b3 /src/egl/main/eglglobals.c | |
parent | 9d81ab73768db6647c116f4710f7a93d8d41e3b1 (diff) |
egl/display: only detect the platform once
My refactor missed the fact that `native_platform` is static.
Add the proper guard around the detection code, as it might not be
necessary, and only print the debug message when a detection was
actually performed.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=101252
Fixes: 7adb9b094894a512c019 ("egl/display: remove unnecessary code and
make it easier to read")
Signed-off-by: Eric Engestrom <[email protected]>
Reviewed-by: Grazvydas Ignotas <[email protected]>
Acked-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/egl/main/eglglobals.c')
0 files changed, 0 insertions, 0 deletions