Skip to content

Commit 78702be

Browse files
committed
merge master
2 parents aeb3f45 + 3b1ef08 commit 78702be

File tree

3 files changed

+28
-35
lines changed

3 files changed

+28
-35
lines changed

configure.ac

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
AC_INIT([projectM], [2.2.2], [[email protected]], [projectM], [https://github.com/revmischa/projectm])
1+
AC_INIT([projectM], [3.0.0], [[email protected]], [projectM], [https://github.com/revmischa/projectm])
22
AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects tar-pax])
33

44
m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
@@ -153,5 +153,5 @@ libprojectM: yes
153153
Threading: ${enable_threading}
154154
SDL: ${enable_sdl}
155155
Qt & Pulseaudio: ${enable_qt}
156-
OpenGL ES: ${enable_gles}
156+
OpenGLES: ${enable_gles}
157157
])

src/libprojectM/Renderer/ShaderEngine.cpp

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@
1010
#include "BeatDetect.hpp"
1111
#include "HLSLTranslator.hpp"
1212

13-
#define GLSL_VERSION "410"
13+
#ifdef USE_GLES
14+
#define GLSL_VERSION "300 es"
15+
#else
16+
#define GLSL_VERSION "410"
17+
#endif
1418

1519
std::string presetVertexShader(
1620
"#version "
@@ -227,6 +231,7 @@ GLint ShaderEngine::UNIFORM_V2F_C4F_T2F_FRAG_TEXTURE_SAMPLER = 0;
227231

228232
ShaderEngine::ShaderEngine() : presetCompShaderLoaded(false), presetWarpShaderLoaded(false)
229233
{
234+
// glValidateProgram needs a VAO for its checks
230235
GLuint m_temp_vao;
231236
glGenVertexArrays(1, &m_temp_vao);
232237
glBindVertexArray(m_temp_vao);
@@ -239,24 +244,7 @@ ShaderEngine::ShaderEngine() : presetCompShaderLoaded(false), presetWarpShaderLo
239244
UNIFORM_V2F_C4F_T2F_VERTEX_TRANFORMATION = glGetUniformLocation(programID_v2f_c4f_t2f, "vertex_transformation");
240245
UNIFORM_V2F_C4F_T2F_FRAG_TEXTURE_SAMPLER = glGetUniformLocation(programID_v2f_c4f_t2f, "texture_sampler");
241246

242-
243-
/* TODO compile blur programs: needed for RenderBlurTextures
244-
* why 2 blur programs loaded for only one effectively used ???????
245-
*
246-
247-
blur1Program = cgCreateProgram(myCgContext, CG_SOURCE, blurProgram.c_str(), myCgProfile, "blur1", NULL);
248-
249-
std::string blur1Filename = "blur1";
250-
checkForCgCompileError(blur1Filename, "creating blur1 program");
251-
if (blur1Program == NULL)
252-
exit(1);
253-
cgGLLoadProgram(blur1Program);
254-
255-
checkForCgError("loading blur1 program");
256-
257-
blur2Program = cgCreateProgram(myCgContext, CG_SOURCE, blurProgram.c_str(), myCgProfile, "blurVert", NULL);
258-
*/
259-
247+
glDeleteVertexArrays(1, &m_temp_vao);
260248
}
261249

262250
ShaderEngine::~ShaderEngine()

src/projectM-sdl/SDLprojectM.xcodeproj/project.pbxproj

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
1612C9E3207A85C100862A3A /* libNativePresetFactory.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 1612C9E1207A85BD00862A3A /* libNativePresetFactory.a */; };
1515
1612CA11207A8D2F00862A3A /* shaders in Copy Files */ = {isa = PBXBuildFile; fileRef = 1612CA10207A8D2400862A3A /* shaders */; };
1616
169502001F7009E9008FAF86 /* pmSDL.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 169501FE1F7009E9008FAF86 /* pmSDL.cpp */; };
17-
16A42142207817AE006F30CE /* Cg.framework in CopyFiles */ = {isa = PBXBuildFile; fileRef = 161070DC1F705069001905AB /* Cg.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
18-
C307DFD41D565B57002F6B9E /* presets in Copy Files */ = {isa = PBXBuildFile; fileRef = C307DFD31D565B57002F6B9E /* presets */; };
1917
C345214F1BF022A5001707D2 /* projectM_SDL_main.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C345214E1BF022A5001707D2 /* projectM_SDL_main.cpp */; };
2018
C345215C1BF025A9001707D2 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C345215B1BF025A9001707D2 /* OpenGL.framework */; };
2119
C345215E1BF025CF001707D2 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C345215D1BF025CF001707D2 /* CoreFoundation.framework */; };
@@ -88,24 +86,13 @@
8886
/* End PBXContainerItemProxy section */
8987

9088
/* Begin PBXCopyFilesBuildPhase section */
91-
161070C81F704047001905AB /* CopyFiles */ = {
92-
isa = PBXCopyFilesBuildPhase;
93-
buildActionMask = 2147483647;
94-
dstPath = "";
95-
dstSubfolderSpec = 10;
96-
files = (
97-
16A42142207817AE006F30CE /* Cg.framework in CopyFiles */,
98-
);
99-
runOnlyForDeploymentPostprocessing = 0;
100-
};
10189
C34521421BF02293001707D2 /* Copy Files */ = {
10290
isa = PBXCopyFilesBuildPhase;
10391
buildActionMask = 12;
10492
dstPath = "";
10593
dstSubfolderSpec = 16;
10694
files = (
10795
C3D30B901BF02BEC009AAACD /* fonts in Copy Files */,
108-
C307DFD41D565B57002F6B9E /* presets in Copy Files */,
10996
1612CA11207A8D2F00862A3A /* shaders in Copy Files */,
11097
);
11198
name = "Copy Files";
@@ -225,7 +212,7 @@
225212
C34521401BF02293001707D2 /* Sources */,
226213
C34521411BF02293001707D2 /* Frameworks */,
227214
C34521421BF02293001707D2 /* Copy Files */,
228-
161070C81F704047001905AB /* CopyFiles */,
215+
1659FEE920D67E2E00092B7D /* ShellScript */,
229216
);
230217
buildRules = (
231218
);
@@ -308,6 +295,24 @@
308295
};
309296
/* End PBXReferenceProxy section */
310297

298+
/* Begin PBXShellScriptBuildPhase section */
299+
1659FEE920D67E2E00092B7D /* ShellScript */ = {
300+
isa = PBXShellScriptBuildPhase;
301+
buildActionMask = 2147483647;
302+
files = (
303+
);
304+
inputPaths = (
305+
"$(SRCROOT)/../../presets",
306+
);
307+
outputPaths = (
308+
"$(DERIVED_FILE_DIR)/presets",
309+
);
310+
runOnlyForDeploymentPostprocessing = 0;
311+
shellPath = /bin/sh;
312+
shellScript = "POUT=$BUILT_PRODUCTS_DIR/presets\nPIN=$SRCROOT/../../presets\n\nmkdir -p $POUT\ncp $PIN/presets_bltc201/* $POUT/\ncp $PIN/presets_milkdrop/* $POUT/\ncp $PIN/presets_milkdrop_104/* $POUT/\ncp $PIN/presets_milkdrop_200/* $POUT/\ncp $PIN/presets_projectM/* $POUT/\ncp $PIN/presets_stock/* $POUT/\ncp $PIN/presets_tryptonaut/* $POUT/\ncp $PIN/presets_yin/* $POUT/\necho \"Copied presets to $POUT\"";
313+
};
314+
/* End PBXShellScriptBuildPhase section */
315+
311316
/* Begin PBXSourcesBuildPhase section */
312317
C34521401BF02293001707D2 /* Sources */ = {
313318
isa = PBXSourcesBuildPhase;

0 commit comments

Comments
 (0)