mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-14 10:55:23 +00:00
aux/ogl: always return false in ogl_import_from_native for AHardwareBuffer
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2272>
This commit is contained in:
parent
967847c742
commit
7cbcf92c3b
|
@ -98,6 +98,12 @@ ogl_import_from_native(struct xrt_image_native *natives,
|
|||
const struct xrt_swapchain_create_info *info,
|
||||
struct ogl_import_results *results)
|
||||
{
|
||||
#if defined(XRT_OS_ANDROID_USE_AHB)
|
||||
// Function is disabled for AHardwareBuffer, glImportMemoryFdEXT requires an actual FD and requires more work
|
||||
// to handle AHardwareBuffer.
|
||||
return false;
|
||||
#endif
|
||||
|
||||
// Setup fields.
|
||||
results->width = info->width;
|
||||
results->height = info->height;
|
||||
|
|
Loading…
Reference in a new issue