mirror of
https://github.com/libretro/RetroArch
synced 2025-01-29 00:32:49 +00:00
(Android) Camera - caps passed to int should contain
RETRO_CAMERA_BUFFER_OPENGL_TEXTURE
This commit is contained in:
parent
1e4e0544bf
commit
0381cf1ffe
@ -34,10 +34,15 @@ typedef struct android_camera
|
||||
static void *android_camera_init(const char *device, uint64_t caps, unsigned width, unsigned height)
|
||||
{
|
||||
(void)device;
|
||||
(void)caps;
|
||||
(void)width;
|
||||
(void)height;
|
||||
|
||||
if ((caps & (1ULL << RETRO_CAMERA_BUFFER_OPENGL_TEXTURE)) == 0)
|
||||
{
|
||||
RARCH_ERR("androidcamera returns OpenGL texture.\n");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
struct android_app *android_app = (struct android_app*)g_android;
|
||||
androidcamera_t *androidcamera = (androidcamera_t*)calloc(1, sizeof(androidcamera_t));
|
||||
if (!androidcamera)
|
||||
|
Loading…
x
Reference in New Issue
Block a user