(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)
|
static void *android_camera_init(const char *device, uint64_t caps, unsigned width, unsigned height)
|
||||||
{
|
{
|
||||||
(void)device;
|
(void)device;
|
||||||
(void)caps;
|
|
||||||
(void)width;
|
(void)width;
|
||||||
(void)height;
|
(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;
|
struct android_app *android_app = (struct android_app*)g_android;
|
||||||
androidcamera_t *androidcamera = (androidcamera_t*)calloc(1, sizeof(androidcamera_t));
|
androidcamera_t *androidcamera = (androidcamera_t*)calloc(1, sizeof(androidcamera_t));
|
||||||
if (!androidcamera)
|
if (!androidcamera)
|
||||||
|
|
Loading…
Reference in New Issue