(Android) Camera - caps passed to int should contain

RETRO_CAMERA_BUFFER_OPENGL_TEXTURE
This commit is contained in:
twinaphex 2013-11-18 01:55:22 +01:00
parent 1e4e0544bf
commit 0381cf1ffe

View File

@ -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)