Hide more OpenGL deprecation warnings on OSX

This commit is contained in:
Ian McInerney 2020-04-24 23:27:23 +01:00
parent 49c46dc796
commit ff67d6300d
1 changed files with 4 additions and 0 deletions

View File

@ -27,6 +27,10 @@
* @brief
*/
// Apple, in their infinite wisdom, has decided to mark OpenGL as deprecated.
// Luckily we can silence warnings about its deprecation. This is needed on the GLEW
// includes since they seem to transitively include the OpenGL headers.
#define GL_SILENCE_DEPRECATION 1
#include <GL/glew.h>
#include "c3d_render_ogl_legacy.h"