forked from FFmpeg/FFmpeg
opencl: Force the use of 1.2 APIs
Silences warnings regarding `clCreateCommandQueue` being deprecated. Only a very limited number of products support 2.0. Since the replacement API (`clCreateCommandQueueWithProperties`) is only available in 2.0, we should not update it just yet.
This commit is contained in:
parent
17c68933f4
commit
801eca1372
1 changed files with 1 additions and 0 deletions
|
@ -32,6 +32,7 @@
|
||||||
#ifndef LIBAVUTIL_OPENCL_H
|
#ifndef LIBAVUTIL_OPENCL_H
|
||||||
#define LIBAVUTIL_OPENCL_H
|
#define LIBAVUTIL_OPENCL_H
|
||||||
|
|
||||||
|
#define CL_USE_DEPRECATED_OPENCL_1_2_APIS 1
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
#include <OpenCL/cl.h>
|
#include <OpenCL/cl.h>
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Add table
Reference in a new issue