From 30169a6947cdd10533f788648874099279b4c9a5 Mon Sep 17 00:00:00 2001 From: TIC Date: Thu, 22 Feb 2018 20:50:05 +0300 Subject: [PATCH] macosx works --- Makefile | 4 +++- src/ext/shader/common.vert | 2 +- src/ext/shader/crt-lottes.frag | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index faea678..a7b23a8 100644 --- a/Makefile +++ b/Makefile @@ -110,13 +110,15 @@ MACOSX_LIBS= \ -L$(PRE_BUILT)/macos \ -L/usr/local/lib \ -lSDL2 -lm -liconv -lobjc -llua -lwren -lz -lgif \ + -lsdlgpu \ -Wl,-framework,CoreAudio \ -Wl,-framework,AudioToolbox \ -Wl,-framework,ForceFeedback \ -Wl,-framework,CoreVideo \ -Wl,-framework,Cocoa \ -Wl,-framework,Carbon \ - -Wl,-framework,IOKit + -Wl,-framework,IOKit \ + -Wl,-framework,OpenGL SOURCES=\ src/studio.c \ diff --git a/src/ext/shader/common.vert b/src/ext/shader/common.vert index c222b3a..ff038ec 100644 --- a/src/ext/shader/common.vert +++ b/src/ext/shader/common.vert @@ -1,4 +1,4 @@ -SHADER( +SHADER(#version 100\n precision highp float; precision mediump int; diff --git a/src/ext/shader/crt-lottes.frag b/src/ext/shader/crt-lottes.frag index 633ca54..aa7fe10 100644 --- a/src/ext/shader/crt-lottes.frag +++ b/src/ext/shader/crt-lottes.frag @@ -1,4 +1,4 @@ -SHADER( +SHADER(#version 100\n precision highp float;