summaryrefslogtreecommitdiffstats
path: root/progs/es2
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2010-01-11 14:00:39 +0800
committerChia-I Wu <[email protected]>2010-01-12 11:25:09 +0800
commit76e726515aedab426a55a389d0a1132456932856 (patch)
treea08d0bd572fcc6928162445df8b4f07262bc8d4a /progs/es2
parent43f67b61fd1020e7ec847c21e1dbae9544d463ec (diff)
progs/es2: Correctly set renderable type and client version.
Correctly set EGL_RENDERABLE_TYPE and EGL_CONTEXT_CLIENT_VERSION for OpenGL ES 2.0. Because es2_info is copied from es1_info, the fix for it actually goes to es1_info. Signed-off-by: Chia-I Wu <[email protected]>
Diffstat (limited to 'progs/es2')
-rw-r--r--progs/es2/xegl/Makefile4
-rw-r--r--progs/es2/xegl/tri.c1
2 files changed, 3 insertions, 2 deletions
diff --git a/progs/es2/xegl/Makefile b/progs/es2/xegl/Makefile
index 88bb0127f83..5bb167c1c63 100644
--- a/progs/es2/xegl/Makefile
+++ b/progs/es2/xegl/Makefile
@@ -33,8 +33,8 @@ default: $(PROGRAMS)
-es2_info.c:
- cp ../../es1/xegl/es1_info.c es2_info.c
+es2_info.c: ../../es1/xegl/es1_info.c
+ cp -f $^ $@
es2_info: es2_info.o $(ES2_LIB_DEPS)
$(CC) $(CFLAGS) es2_info.o $(ES2_LIBS) -o $@
diff --git a/progs/es2/xegl/tri.c b/progs/es2/xegl/tri.c
index eb52b106200..7729a099578 100644
--- a/progs/es2/xegl/tri.c
+++ b/progs/es2/xegl/tri.c
@@ -242,6 +242,7 @@ make_x_window(Display *x_dpy, EGLDisplay egl_dpy,
EGL_GREEN_SIZE, 1,
EGL_BLUE_SIZE, 1,
EGL_DEPTH_SIZE, 1,
+ EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT,
EGL_NONE
};
static const EGLint ctx_attribs[] = {