Signed-off-by: falkTX <falktx@falktx.com>pull/507/head
| @@ -668,13 +668,9 @@ endif | |||||
| ifeq ($(USE_GLES2),true) | ifeq ($(USE_GLES2),true) | ||||
| BUILD_CXX_FLAGS += -DDGL_USE_OPENGL3 -DDGL_USE_GLES -DDGL_USE_GLES2 | 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 | 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 | BUILD_CXX_FLAGS += -DDGL_USE_OPENGL3 | ||||
| endif | endif | ||||
| @@ -205,8 +205,12 @@ UI_TYPE = none | |||||
| endif | endif | ||||
| ifeq ($(UI_TYPE),) | ifeq ($(UI_TYPE),) | ||||
| ifeq ($(WASM),true) | |||||
| UI_TYPE = gles2 | |||||
| else | |||||
| UI_TYPE = opengl | UI_TYPE = opengl | ||||
| endif | endif | ||||
| endif | |||||
| ifeq ($(UI_TYPE),generic) | ifeq ($(UI_TYPE),generic) | ||||
| ifeq ($(HAVE_OPENGL),true) | ifeq ($(HAVE_OPENGL),true) | ||||
| @@ -171,8 +171,13 @@ all: $(TARGETS) | |||||
| cairo: $(BUILD_DIR)/libdgl-cairo.a | cairo: $(BUILD_DIR)/libdgl-cairo.a | ||||
| gles2: $(BUILD_DIR)/libdgl-gles2.a | gles2: $(BUILD_DIR)/libdgl-gles2.a | ||||
| gles3: $(BUILD_DIR)/libdgl-gles3.a | gles3: $(BUILD_DIR)/libdgl-gles3.a | ||||
| ifeq ($(WASM),true) | |||||
| opengl: gles2 | |||||
| opengl3: gles3 | |||||
| else | |||||
| opengl: $(BUILD_DIR)/libdgl-opengl.a | opengl: $(BUILD_DIR)/libdgl-opengl.a | ||||
| opengl3: $(BUILD_DIR)/libdgl-opengl3.a | opengl3: $(BUILD_DIR)/libdgl-opengl3.a | ||||
| endif | |||||
| stub: $(BUILD_DIR)/libdgl-stub.a | stub: $(BUILD_DIR)/libdgl-stub.a | ||||
| vulkan: $(BUILD_DIR)/libdgl-vulkan.a | vulkan: $(BUILD_DIR)/libdgl-vulkan.a | ||||
| web: $(BUILD_DIR)/libdgl-web.a | web: $(BUILD_DIR)/libdgl-web.a | ||||