mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-13 19:44:28 +00:00
gl_engine: upgrade min gl version
most device supported morden gl which is: GLES 3.0 for mobile GPU GL 3.3 for desktop GPU
This commit is contained in:
parent
345ef54e26
commit
7a35ff4d4b
3 changed files with 4 additions and 4 deletions
|
@ -88,7 +88,7 @@ static Eo* createGlView(uint32_t w = 800, uint32_t h = 800)
|
|||
Eo* win = elm_win_util_standard_add(NULL, "ThorVG Test");
|
||||
evas_object_smart_callback_add(win, "delete,request", win_del, 0);
|
||||
|
||||
Eo* view = elm_glview_add(win);
|
||||
Eo* view = elm_glview_version_add(win, EVAS_GL_GLES_3_X);
|
||||
evas_object_size_hint_weight_set(view, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
|
||||
elm_glview_mode_set(view, ELM_GLVIEW_ALPHA);
|
||||
elm_glview_resize_policy_set(view, ELM_GLVIEW_RESIZE_POLICY_RECREATE);
|
||||
|
|
|
@ -19,9 +19,9 @@ source_file = [
|
|||
'tvgGlShaderSrc.cpp',
|
||||
]
|
||||
|
||||
egl_dep = meson.get_compiler('cpp').find_library('EGL')
|
||||
gles_dep = meson.get_compiler('cpp').find_library('GLESv2')
|
||||
external_dep = [egl_dep, gles_dep]
|
||||
|
||||
external_dep = [gles_dep]
|
||||
|
||||
engine_dep += [declare_dependency(
|
||||
dependencies : external_dep,
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
#define _TVG_GL_COMMON_H_
|
||||
|
||||
#include <assert.h>
|
||||
#include <GLES2/gl2.h>
|
||||
#include <GLES3/gl3.h>
|
||||
#include "tvgCommon.h"
|
||||
#include "tvgRender.h"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue