Skip to content

Commit 93a21c7

Browse files
committed
Support other graphic backends on some platforms
1 parent f4ed8fc commit 93a21c7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -262,16 +262,16 @@ ifeq ($(TARGET_PLATFORM),PLATFORM_DESKTOP_WIN32)
262262
endif
263263
ifeq ($(TARGET_PLATFORM),PLATFORM_DRM)
264264
# On DRM OpenGL ES 2.0 must be used
265-
GRAPHICS = GRAPHICS_API_OPENGL_ES2
265+
GRAPHICS ?= GRAPHICS_API_OPENGL_ES2
266266
endif
267267
ifeq ($(TARGET_PLATFORM),$(filter $(TARGET_PLATFORM),PLATFORM_WEB PLATFORM_WEB_RGFW))
268268
# On HTML5 OpenGL ES 2.0 is used, emscripten translates it to WebGL 1.0
269-
GRAPHICS = GRAPHICS_API_OPENGL_ES2
269+
GRAPHICS ?= GRAPHICS_API_OPENGL_ES2
270270
#GRAPHICS = GRAPHICS_API_OPENGL_ES3
271271
endif
272272
ifeq ($(TARGET_PLATFORM),PLATFORM_ANDROID)
273273
# By default use OpenGL ES 2.0 on Android
274-
GRAPHICS = GRAPHICS_API_OPENGL_ES2
274+
GRAPHICS ?= GRAPHICS_API_OPENGL_ES2
275275
endif
276276

277277
# Define default C compiler and archiver to pack library: CC, AR

0 commit comments

Comments
 (0)