silence GL deprecation

This commit is contained in:
Brad Grantham 2019-02-10 22:58:06 -08:00
parent 6f9ed33f2f
commit dcb27ce242
2 changed files with 4 additions and 0 deletions

View File

@ -1,6 +1,8 @@
#include <cstdlib>
#include <cstdio>
#define GL_SILENCE_DEPRECATION
#if defined(__linux__)
#include <GL/glew.h>
#endif // defined(__linux__)

View File

@ -1,6 +1,8 @@
#if !defined(__GLWIDGET_H__)
#define __GLWIDGET_H__
#define GL_SILENCE_DEPRECATION
#if defined(__linux__)
#include <GL/glew.h>
#endif // defined(__linux__)