[gtkglarea/jjardon/epoxy: 4/4] configure.ac: Check correctly for shaders support
- From: Javier Jardón <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkglarea/jjardon/epoxy: 4/4] configure.ac: Check correctly for shaders support
- Date: Tue, 5 Aug 2014 01:33:03 +0000 (UTC)
commit c0b19664f53cc3f4439bde574692f6888a3ce0b0
Author: Javier Jardón <jjardon gnome org>
Date: Mon Apr 7 13:36:34 2014 +0100
configure.ac: Check correctly for shaders support
configure.ac | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index bcda494..31bce41 100644
--- a/configure.ac
+++ b/configure.ac
@@ -86,8 +86,8 @@ PKG_CHECK_MODULES([GL],[
saved_LIBS="$LIBS"
AC_MSG_CHECKING([OpenGL shaders])
LIBS="$saved_LIBS $GL_LIBS"
-AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],
- [[ char glCreateProgram(); glCreateProgram(); ]])],
+AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <epoxy/gl.h>]],
+ [[glCreateShader(GL_VERTEX_SHADER);]])],
[have_shaders=yes],[have_shaders=no])
AC_MSG_RESULT($have_shaders)
LIBS="$saved_LIBS"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]