Skip to content

Commit d99e66e

Browse files
authored
melonds: add lGLESv2 if HAVE_OPENGLES3 (#1814)
1 parent 06e329f commit d99e66e

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

packages/lakka/libretro_cores/melonds/patches/melonds-dont-force-opengl.patch

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,22 @@ diff --git a/Makefile b/Makefile
22
index ede55b3..86ccc10 100644
33
--- a/Makefile
44
+++ b/Makefile
5-
@@ -50,6 +50,10 @@ TARGET_NAME := melonds
5+
@@ -50,6 +50,14 @@ TARGET_NAME := melonds
66
LIBS = -lm
77
DEFINES :=
88

99
+ifeq ($(HAVE_OPENGL), 1)
1010
+LIBS += -lGL
1111
+endif
12+
+
13+
+ifeq ($(HAVE_OPENGLES3), 1)
14+
+LIBS += -lGLESv2
15+
+endif
1216
+
1317
# GIT HASH
1418
GIT_VERSION := " $(shell git rev-parse --short HEAD || echo unknown)"
1519
ifneq ($(GIT_VERSION)," unknown")
16-
@@ -72,10 +76,6 @@ ifeq ($(platform), unix)
20+
@@ -72,10 +80,6 @@ ifeq ($(platform), unix)
1721
CFLAGS += -D_GNU_SOURCE
1822
LIBS += -lpthread -lrt
1923
HAVE_THREADS=1

0 commit comments

Comments
 (0)