Skip to content

Commit

Permalink
gl_engine: upgrade min gl version
Browse files Browse the repository at this point in the history
most device supported morden gl which is:
GLES 3.0 for mobile GPU
GL 3.3 for desktop GPU
  • Loading branch information
RuiwenTang authored and hermet committed Aug 9, 2023
1 parent 345ef54 commit 7a35ff4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/examples/Common.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions src/lib/gl_engine/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/lib/gl_engine/tvgGlCommon.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit 7a35ff4

Please sign in to comment.