add missing GL include needed on arm arch's (#316)

* add missing GL include needed on arm arch's

On other arch's, including amd64, this gets pulled in via QOpenGLWidget.
However, since it uses GL functions directly and GL.h doesn't get pulled in
automatically, this is necessary on arm.

* Add preprocessor arch checks for linux arm

Co-authored-by: mjbudd77 <44712797+mjbudd77@users.noreply.github.com>
This commit is contained in:
jnahmias 2021-02-01 21:31:20 -05:00 committed by GitHub
parent 663e357553
commit ab4cde7dbb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -28,6 +28,10 @@
#include <QScreen>
#include <QMouseEvent>
#if defined(__arm__) && defined(__linux__)
#include <GL/gl.h>
#endif
#include "Qt/nes_shm.h"
#include "Qt/fceuWrapper.h"
#include "Qt/ConsoleViewerGL.h"