diff options
author | Chad Versace <chad.versace@linux.intel.com> | 2012-04-10 17:17:54 -0700 |
---|---|---|
committer | Chad Versace <chad.versace@linux.intel.com> | 2012-04-10 19:18:37 -0700 |
commit | 6e9e20cd4946655da2212137eec27912bc6599cb (patch) | |
tree | 0267c982e6830f635b6af486e2de776c76395906 | |
parent | e73ee1c4b700132ffd8ee68735905d92e7e427e1 (diff) |
egl: Remove egl_translate_attr_value()
Now that WAFFLE_DONT_CARE == EGL_DONT_CARE, this function no longer
translates anything.
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
-rw-r--r-- | src/waffle/egl/egl_no_native.c | 28 |
1 files changed, 9 insertions, 19 deletions
diff --git a/src/waffle/egl/egl_no_native.c b/src/waffle/egl/egl_no_native.c index 3500289..9e82755 100644 --- a/src/waffle/egl/egl_no_native.c +++ b/src/waffle/egl/egl_no_native.c @@ -22,16 +22,6 @@ #include <waffle/core/wcore_config_attrs.h> #include <waffle/core/wcore_error.h> -static EGLint -egl_translate_attr_value(int32_t waffle_attr_value) -{ - switch(waffle_attr_value) { - case WAFFLE_DONT_CARE: return EGL_DONT_CARE; - default: return waffle_attr_value; - } -} - - void egl_get_error(const char *egl_func_call) { @@ -90,17 +80,17 @@ egl_choose_config( const int renderable_index = 19; EGLint attrib_list[] = { - EGL_BUFFER_SIZE, egl_translate_attr_value(attrs->color_buffer_size), - EGL_RED_SIZE, egl_translate_attr_value(attrs->red_size), - EGL_BLUE_SIZE, egl_translate_attr_value(attrs->blue_size), - EGL_GREEN_SIZE, egl_translate_attr_value(attrs->green_size), - EGL_ALPHA_SIZE, egl_translate_attr_value(attrs->alpha_size), + EGL_BUFFER_SIZE, attrs->color_buffer_size, + EGL_RED_SIZE, attrs->red_size, + EGL_GREEN_SIZE, attrs->green_size, + EGL_BLUE_SIZE, attrs->blue_size, + EGL_ALPHA_SIZE, attrs->alpha_size, - EGL_DEPTH_SIZE, egl_translate_attr_value(attrs->depth_size), - EGL_STENCIL_SIZE, egl_translate_attr_value(attrs->stencil_size), + EGL_DEPTH_SIZE, attrs->depth_size, + EGL_STENCIL_SIZE, attrs->stencil_size, - EGL_SAMPLE_BUFFERS, egl_translate_attr_value(attrs->sample_buffers), - EGL_SAMPLES, egl_translate_attr_value(attrs->samples), + EGL_SAMPLE_BUFFERS, attrs->sample_buffers, + EGL_SAMPLES, attrs->samples, EGL_RENDERABLE_TYPE, 31415926, |