Skip to content

Commit

Permalink
renderer-backend-egl: cast return value in get_native_display() (#119)
Browse files Browse the repository at this point in the history
In the wpe_renderer_backend_egl_interface::get_native_display(),
explicitly cast the wl_display object to the EGLNativeDisplayType.
This should avoid compilation errors on rare EGL stacks that have
odd default EGLNativeDisplayType type definitions.

(cherry picked from commit 1123b61)
  • Loading branch information
zdobersek authored and aperezdc committed May 26, 2020
1 parent 1dda80d commit 925147d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer-backend-egl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ struct wpe_renderer_backend_egl_interface fdo_renderer_backend_egl = {
[](void* data) -> EGLNativeDisplayType
{
auto& backend = *reinterpret_cast<Backend*>(data);
return backend.display();
return EGLNativeDisplayType(backend.display());
},
};

Expand Down

0 comments on commit 925147d

Please sign in to comment.