diff options
author | Rob Clark <robdclark@gmail.com> | 2018-06-17 09:59:38 -0400 |
---|---|---|
committer | Rob Clark <robdclark@gmail.com> | 2018-06-19 09:43:09 -0400 |
commit | 9dcce71e603616ee7a54707e932f962cdf8fb20a (patch) | |
tree | 874382698c6e736e9d7bde3af3dd8ef028b38e64 /common.c | |
parent | 063ce5c732598b3855775e59b59d9ddffe4ddb24 (diff) | |
download | kmscube-9dcce71e603616ee7a54707e932f962cdf8fb20a.tar.gz |
add MSAA
Signed-off-by: Rob Clark <robdclark@gmail.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Diffstat (limited to 'common.c')
-rw-r--r-- | common.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -161,7 +161,7 @@ out: return true; } -int init_egl(struct egl *egl, const struct gbm *gbm) +int init_egl(struct egl *egl, const struct gbm *gbm, int samples) { EGLint major, minor; @@ -170,13 +170,14 @@ int init_egl(struct egl *egl, const struct gbm *gbm) EGL_NONE }; - static const EGLint config_attribs[] = { + const EGLint config_attribs[] = { EGL_SURFACE_TYPE, EGL_WINDOW_BIT, EGL_RED_SIZE, 1, EGL_GREEN_SIZE, 1, EGL_BLUE_SIZE, 1, EGL_ALPHA_SIZE, 0, EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT, + EGL_SAMPLES, samples, EGL_NONE }; const char *egl_exts_client, *egl_exts_dpy, *gl_exts; |