opencv/modules/highgui
StefanBruens f05d5888c9
Merge pull request #16479 from StefanBruens:fix_gles_glx_h_include
Fix compilation errors on GLES platforms

* Do not include glx.h when using GLES

GL/glx.h is included on all LINUX plattforms, which is wrong
for a number of reasons:

- GL_PERSPECTIVE_CORRECTION_HINT is defined in GL/gl.h, so we
  want gl.h not glx.h, the latter just includes the former
- GL/gl.h is a Desktop GL header, and should not be included
  on GLES plattforms
- GL/gl.h is already included via QtOpenGL ->
  QtGui/qopengl.h on desktop plattforms

This fixes a problem when Qt is compiled with GLES, which
is often done on ARM platforms where desktop GL is not or
only poorly supported (e.g. slow due to emulation).

Fixes part of #9171.

* Only set GL_PERSPECTIVE_CORRECTION_HINT when GL version defines it

GL_PERSPECTIVE_CORRECTION_HINT does not exist in GLES 2.0/3.x,
and has been deprecated in OpenGL 3.0 core profiles.

Fixes part of #9171.
2020-02-02 16:29:04 +03:00
..
doc/pics squashed #823 2015-04-24 21:58:14 +02:00
include/opencv2 Merge pull request #14872 from AhiyaHiya:feature/topmost_window 2019-09-05 13:55:17 +03:00
misc/java java: disable highgui wrapped code 2018-01-13 02:12:39 +00:00
src Merge pull request #16479 from StefanBruens:fix_gles_glx_h_include 2020-02-02 16:29:04 +03:00
test ts: refactor OpenCV tests 2018-02-03 19:39:47 +00:00
CMakeLists.txt Merge pull request #16027 from shibayan:arm64-windows10 2019-12-17 00:23:30 +03:00