Fix incorrect test of wxUSE_GLCANVAS_EGL (Linux).

in wxWidgets 3.1.5 wxUSE_GLCANVAS_EGL is always defined (set to 0 or to 1)
So using "ifdef wxUSE_GLCANVAS_EGL" is incorrect.
This commit is contained in:
jean-pierre charras 2021-06-06 15:58:09 +02:00
parent be61bf29dd
commit 2078483f50
1 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@
#ifdef KICAD_USE_EGL #ifdef KICAD_USE_EGL
#ifdef wxUSE_GLCANVAS_EGL #if wxUSE_GLCANVAS_EGL
// wxWidgets was compiled with the EGL canvas, so use the EGL header for GLEW // wxWidgets was compiled with the EGL canvas, so use the EGL header for GLEW
#include <GL/eglew.h> #include <GL/eglew.h>
#else #else
@ -49,7 +49,7 @@
#else // KICAD_USE_EGL #else // KICAD_USE_EGL
#ifdef wxUSE_GLCANVAS_EGL #if wxUSE_GLCANVAS_EGL
#error "KICAD_USE_EGL must be defined since wxWidgets has been compiled with the EGL canvas" #error "KICAD_USE_EGL must be defined since wxWidgets has been compiled with the EGL canvas"
#else #else
// wxWidgets wasn't compiled with the EGL canvas, so use the X11 GLEW // wxWidgets wasn't compiled with the EGL canvas, so use the X11 GLEW