Browse Source

Use gles2 as default UI type under wasm

Signed-off-by: falkTX <falktx@falktx.com>
pull/507/head
falkTX 1 month ago
parent
commit
6b77f40a96
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
3 changed files with 11 additions and 6 deletions
  1. +2
    -6
      Makefile.base.mk
  2. +4
    -0
      Makefile.plugins.mk
  3. +5
    -0
      dgl/Makefile

+ 2
- 6
Makefile.base.mk View File

@@ -668,13 +668,9 @@ endif

ifeq ($(USE_GLES2),true)
BUILD_CXX_FLAGS += -DDGL_USE_OPENGL3 -DDGL_USE_GLES -DDGL_USE_GLES2
endif

ifeq ($(USE_GLES3),true)
else ifeq ($(USE_GLES3),true)
BUILD_CXX_FLAGS += -DDGL_USE_OPENGL3 -DDGL_USE_GLES -DDGL_USE_GLES3
endif

ifeq ($(USE_OPENGL3),true)
else ifeq ($(USE_OPENGL3),true)
BUILD_CXX_FLAGS += -DDGL_USE_OPENGL3
endif



+ 4
- 0
Makefile.plugins.mk View File

@@ -205,8 +205,12 @@ UI_TYPE = none
endif

ifeq ($(UI_TYPE),)
ifeq ($(WASM),true)
UI_TYPE = gles2
else
UI_TYPE = opengl
endif
endif

ifeq ($(UI_TYPE),generic)
ifeq ($(HAVE_OPENGL),true)


+ 5
- 0
dgl/Makefile View File

@@ -171,8 +171,13 @@ all: $(TARGETS)
cairo: $(BUILD_DIR)/libdgl-cairo.a
gles2: $(BUILD_DIR)/libdgl-gles2.a
gles3: $(BUILD_DIR)/libdgl-gles3.a
ifeq ($(WASM),true)
opengl: gles2
opengl3: gles3
else
opengl: $(BUILD_DIR)/libdgl-opengl.a
opengl3: $(BUILD_DIR)/libdgl-opengl3.a
endif
stub: $(BUILD_DIR)/libdgl-stub.a
vulkan: $(BUILD_DIR)/libdgl-vulkan.a
web: $(BUILD_DIR)/libdgl-web.a


Loading…
Cancel
Save