From 246f58d922272a778454a466abd50106317e16ac Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Wed, 5 Aug 2009 16:08:48 -0600 Subject: [PATCH] progs/egl: Add xeglbindtex. This is a simple demo for eglBindTexImage. It uses a OpenGL context, instead of the required OpenGL ES one. But it still suffices the demo and test purpose. Signed-off-by: Chia-I Wu --- progs/egl/Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/progs/egl/Makefile b/progs/egl/Makefile index d3c32d46f78..fd72f540cae 100644 --- a/progs/egl/Makefile +++ b/progs/egl/Makefile @@ -17,6 +17,7 @@ PROGRAMS = \ eglgears \ eglscreen \ peglgears \ + xeglbindtex \ xeglgears \ xeglthreads \ xegl_tri @@ -84,6 +85,12 @@ peglgears.o: peglgears.c $(HEADERS) $(CC) -c $(CFLAGS) -I$(TOP)/include peglgears.c +xeglbindtex: xeglbindtex.o $(TOP)/$(LIB_DIR)/libEGL.so + $(CC) $(CFLAGS) xeglbindtex.o -L$(TOP)/$(LIB_DIR) -lEGL -lGL $(LIBDRM_LIB) $(APP_LIB_DEPS) -o $@ + +xeglbindtex.o: xeglbindtex.c $(HEADERS) + $(CC) -c $(CFLAGS) -I$(TOP)/include xeglbindtex.c + xeglgears: xeglgears.o $(TOP)/$(LIB_DIR)/libEGL.so $(CC) $(CFLAGS) xeglgears.o -L$(TOP)/$(LIB_DIR) -lEGL -lGL $(LIBDRM_LIB) $(APP_LIB_DEPS) -o $@ -- 2.30.2