MacOS: Silence OpenGL deprecation warnings.
OpenGL is deprecated by Apple and triggers a warning when used. The goal is that OpenGL is replaced by Metal backend, but we are not there yet. To improve tracability of new warnings we hide deprecation warnings when the GHOST_ContextCGL.h file is included. NOTE: This change silences other deprecation warnings as well.
This commit is contained in:
@@ -12,6 +12,12 @@
|
||||
#include "GPU_common_types.h"
|
||||
#include "GPU_context.h"
|
||||
|
||||
/* Don't generate OpenGL deprecation warning. This is a known thing, and is not something easily
|
||||
* solvable in a short term. */
|
||||
#ifdef __clang__
|
||||
# pragma clang diagnostic ignored "-Wdeprecated-declarations"
|
||||
#endif
|
||||
|
||||
#include "intern/GHOST_Context.h"
|
||||
#include "intern/GHOST_ContextCGL.h"
|
||||
#include "intern/GHOST_Window.h"
|
||||
|
||||
Reference in New Issue
Block a user