platform: explicitly cast the return value of weston_platform_get_egl_proc_address
This allows the header to be consumed by C++ compilers, because C++ does away with C's implicit cast from (void*). Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
This commit is contained in:
committed by
Bryce Harrington
parent
38298ec0b4
commit
cd9424ef2a
+6
-4
@@ -75,8 +75,9 @@ weston_platform_get_egl_display(EGLenum platform, void *native_display,
|
|||||||
static PFNEGLGETPLATFORMDISPLAYEXTPROC get_platform_display = NULL;
|
static PFNEGLGETPLATFORMDISPLAYEXTPROC get_platform_display = NULL;
|
||||||
|
|
||||||
if (!get_platform_display) {
|
if (!get_platform_display) {
|
||||||
get_platform_display = weston_platform_get_egl_proc_address(
|
get_platform_display = (PFNEGLGETPLATFORMDISPLAYEXTPROC)
|
||||||
"eglGetPlatformDisplayEXT");
|
weston_platform_get_egl_proc_address(
|
||||||
|
"eglGetPlatformDisplayEXT");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (get_platform_display)
|
if (get_platform_display)
|
||||||
@@ -95,8 +96,9 @@ weston_platform_create_egl_surface(EGLDisplay dpy, EGLConfig config,
|
|||||||
create_platform_window = NULL;
|
create_platform_window = NULL;
|
||||||
|
|
||||||
if (!create_platform_window) {
|
if (!create_platform_window) {
|
||||||
create_platform_window = weston_platform_get_egl_proc_address(
|
create_platform_window = (PFNEGLCREATEPLATFORMWINDOWSURFACEEXTPROC)
|
||||||
"eglCreatePlatformWindowSurfaceEXT");
|
weston_platform_get_egl_proc_address(
|
||||||
|
"eglCreatePlatformWindowSurfaceEXT");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (create_platform_window)
|
if (create_platform_window)
|
||||||
|
|||||||
Reference in New Issue
Block a user