What can be the solution of a deprecated of “EAGLContext”?

后端 未结 2 1323
轻奢々
轻奢々 2021-01-06 22:33

I want to use the native filters for my app, the function works but I want to avoid methods that will be removed from the documentation. I search over the whole internet and

相关标签:
2条回答
  • 2021-01-06 23:08

    You do NOT strictly need to switch to Metal.

    If you just want to avoid these warnings without but you don't want to switch to Metal because it could be an overkill (like my case) or a big time investment, you can always set the flags in the compiler to avoid these warnings.

    If you pass the mouse over the warning itself it will let you know which is the specific flag to activate (i.e. CI_SILENCE_GL_DEPRECATION).

    Then you just go to your Project File > Build Settings > Select 'All' and search for 'flags' > Apple Clang - Custom Compiler flags > Insert the Flag. Also check for Swift Compiler - Custom Flags.

    0 讨论(0)
  • 2021-01-06 23:21

    EAGLContext is part of OpenGL, which is deprecated. You should switch to Metal at this stage.

    0 讨论(0)
提交回复
热议问题