Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'glCreateShader' is deprecated: first deprecated in macOS 10.14 #69

Open
nevertoday opened this issue Jun 8, 2022 · 1 comment
Open

Comments

@nevertoday
Copy link

libavfilter/vf_gltransition.c:143:19: warning: 'glCreateShader' is deprecated:
first deprecated in macOS 10.14 - OpenGL API deprecated. (Define
GL_SILENCE_DEPRECATION to silence these warnings)
[-Wdeprecated-declarations]
GLuint shader = glCreateShader(type);
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl3.h:1866:23: note:
'glCreateShader' has been explicitly marked deprecated here
GLAPI GLuint APIENTRY glCreateShader (GLenum type) OPENGL_DEPRECATED(10....

@SuperMonkeyC
Copy link

insert # define GL_SILENCE_DEPRECATION

#ifdef APPLE

define _gl_h

define GL_DO_NOT_WARN_IF_MULTI_GL_VERSION_HEADERS_INCLUDED

define GL_SILENCE_DEPRECATION

include <OpenGL/gl3.h>

#else

include <GL/glew.h>

#endif

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants