diff options
Diffstat (limited to 'src/modules/evas/engines/gl_x11/evas_engine.c')
-rw-r--r-- | src/modules/evas/engines/gl_x11/evas_engine.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/evas/engines/gl_x11/evas_engine.c b/src/modules/evas/engines/gl_x11/evas_engine.c index c885353..0a9a69c 100644 --- a/src/modules/evas/engines/gl_x11/evas_engine.c +++ b/src/modules/evas/engines/gl_x11/evas_engine.c | |||
@@ -503,7 +503,7 @@ evgl_eng_context_create(void *data, void *share_ctx, Evas_GL_Context_Version ver | |||
503 | * But this leads to some issues, namely that the list of extensions is | 503 | * But this leads to some issues, namely that the list of extensions is |
504 | * different, and MSAA surfaces also work differently. | 504 | * different, and MSAA surfaces also work differently. |
505 | */ | 505 | */ |
506 | if (eng_get_ob(re)->gles3 && (version >= EVAS_GL_GLES_2_X)) | 506 | if (gles3_supported && (version >= EVAS_GL_GLES_2_X)) |
507 | version = 3; | 507 | version = 3; |
508 | 508 | ||
509 | context_attrs[0] = EGL_CONTEXT_CLIENT_VERSION; | 509 | context_attrs[0] = EGL_CONTEXT_CLIENT_VERSION; |
@@ -718,7 +718,7 @@ evgl_eng_pbuffer_surface_create(void *data, EVGL_Surface *sfc, | |||
718 | } | 718 | } |
719 | 719 | ||
720 | config_attrs[i++] = EGL_RENDERABLE_TYPE; | 720 | config_attrs[i++] = EGL_RENDERABLE_TYPE; |
721 | if (eng_get_ob(re)->gles3) | 721 | if (gles3_supported) |
722 | config_attrs[i++] = EGL_OPENGL_ES3_BIT_KHR; | 722 | config_attrs[i++] = EGL_OPENGL_ES3_BIT_KHR; |
723 | else | 723 | else |
724 | config_attrs[i++] = EGL_OPENGL_ES2_BIT; | 724 | config_attrs[i++] = EGL_OPENGL_ES2_BIT; |
@@ -2511,7 +2511,7 @@ eng_image_native_set(void *engine, void *image, void *native) | |||
2511 | config_attrs[i++] = EGL_STENCIL_SIZE; | 2511 | config_attrs[i++] = EGL_STENCIL_SIZE; |
2512 | config_attrs[i++] = 0; | 2512 | config_attrs[i++] = 0; |
2513 | config_attrs[i++] = EGL_RENDERABLE_TYPE; | 2513 | config_attrs[i++] = EGL_RENDERABLE_TYPE; |
2514 | if (eng_get_ob(re)->gles3) | 2514 | if (gles3_supported) |
2515 | config_attrs[i++] = EGL_OPENGL_ES3_BIT_KHR; | 2515 | config_attrs[i++] = EGL_OPENGL_ES3_BIT_KHR; |
2516 | else | 2516 | else |
2517 | config_attrs[i++] = EGL_OPENGL_ES2_BIT; | 2517 | config_attrs[i++] = EGL_OPENGL_ES2_BIT; |