Change the type of parameter 'native_display' from intptr_t to void*.
No intended change in behavior. Prepares for eventual use of
eglGetPlatformDisplay, whose 'native_display' parameter has type void*.
Reviewed-by: Emil Velikov
---
src/waffle/android/droid_display.c
Each EGL platform 'foo' calls setenv("EGL_PLATFORM", "foo") during
foo_platform_create(), and calls unsetenv("EGL_PLATFORM") during
foo_platform_destroy(). Move the setenv/unsetenv into the core EGL code,
into wegl_platform_init() and wegl_platform_finish().
This prepares for eventually using
No intended change in behavior. Prepares for eventual use of
eglGetPlatformDisplay.
Add an `EGLenum egl_platform` parameter to wegl_platform_init() and
store it at wegl_platform::egl_platform.
Reviewed-by: Emil Velikov
---
src/waffle/egl/wegl_platform.c| 5
Not yet used.
v2: Use eglGetProcAddress, not dlsym, due the EGL 1.5 spec. (for emil)
Cc: Emil Velikov
---
src/waffle/egl/wegl_imports.h | 4
src/waffle/egl/wegl_platform.c | 23 +++
src/waffle/egl/wegl_platform.h | 4
3 files changed,
Prepares for use of eglGetPlatformDisplay.
Define the enums to prevent the Waffle build from breaking against old
headers... like Ubuntu LTS.
Reviewed-by: Emil Velikov
---
src/waffle/egl/wegl_imports.h | 26 ++
src/waffle/egl/wegl_platform.h |
Before EGL_EXT_platform_base and EGL 1.5, when using Mesa the best way
to select the EGL platform was to set the EGL_PLATFORM environment
variable. Now that a standard way exists, eglGetPlatformDisplay, let's
use it when available.
After this series, I have a series to add support for
6 matches
Mail list logo