gles.patch 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. From 1a3f16ded122bf3928aeb9beb71b594bf24ce01a Mon Sep 17 00:00:00 2001
  2. From: orbea <orbea@riseup.net>
  3. Date: Fri, 10 May 2019 14:47:36 -0700
  4. Subject: [PATCH] Fix --enable-opengles and --enable-opengles3 (#8749)
  5. * qb: Fix OpenGLES build.
  6. The gl core video driver requires at least OpenGLES 3 and
  7. OpenGL 1 is not compatible with OpenGLES 2 or 3.
  8. ---
  9. qb/config.libs.sh | 8 ++++++++
  10. 1 file changed, 8 insertions(+)
  11. diff --git a/qb/config.libs.sh b/qb/config.libs.sh
  12. index 17eb7ccf20..510386e44c 100644
  13. --- a/qb/config.libs.sh
  14. +++ b/qb/config.libs.sh
  15. @@ -351,6 +351,14 @@ fi
  16. if [ "$HAVE_OPENGL" = 'no' ] && [ "$HAVE_OPENGLES3" = 'no' ]; then
  17. die : 'Notice: OpenGL and OpenGLES3 are disabled. Disabling HAVE_OPENGL_CORE.'
  18. HAVE_OPENGL_CORE='no'
  19. +elif [ "$HAVE_OPENGLES" != 'no' ] && [ "$HAVE_OPENGLES3" != 'yes' ]; then
  20. + die : 'Notice: OpenGLES2 is enabled. Disabling the OpenGL core driver.'
  21. + HAVE_OPENGL_CORE='no'
  22. +fi
  23. +
  24. +if [ "$HAVE_OPENGLES" != 'no' ] || [ "$HAVE_OPENGLES3" != 'no' ]; then
  25. + die : 'Notice: OpenGLES is enabled. Disabling the OpenGL1 driver.'
  26. + HAVE_OPENGL1='no'
  27. fi
  28. if [ "$HAVE_ZLIB" = 'no' ]; then