mirror of
https://github.com/lbgos/rift-s-linux.git
synced 2026-10-28 21:01:28 +01: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:
1 parent
967847c742
commit
7cbcf92c3b
1 file changed
+6
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user