From 17fa8eac041f28ad3039196f7295735d9e9da69e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 25 Sep 2014 20:48:59 +0300 Subject: [PATCH] gloverlay: Include into the build with GLES2 only too --- ext/gl/Makefile.am | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/ext/gl/Makefile.am b/ext/gl/Makefile.am index b1796f69cc..2d1376529d 100644 --- a/ext/gl/Makefile.am +++ b/ext/gl/Makefile.am @@ -47,11 +47,6 @@ OPENGL_SOURCES += \ gstglbumper.h \ gstgldifferencematte.c \ gstgldifferencematte.h -if HAVE_JPEG -OPENGL_SOURCES += \ - gstgloverlay.c \ - gstgloverlay.h -endif endif endif @@ -85,6 +80,14 @@ libgstopengl_la_SOURCES += \ gstgltransformation.h endif +if HAVE_JPEG +if HAVE_PNG +libgstopengl_la_SOURCES += \ + gstgloverlay.c \ + gstgloverlay.h +endif +endif + # check order of CFLAGS and LIBS, shouldn't the order be the other way around # (like in AM_CFLAGS)? libgstopengl_la_CFLAGS = \