Skip to content

Commit 23cd9c5

Browse files
committed
GLES and SSE2 fix stuff
1 parent 3d4fe80 commit 23cd9c5

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

src/libprojectM/MilkdropPresetFactory/Param.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,10 @@
5757
class InitCond;
5858
class Param;
5959
class Preset;
60-
//#include <map>
60+
61+
#ifdef __SSE2__
6162
#include <immintrin.h>
63+
#endif
6264

6365

6466
/* Parameter Type */

src/libprojectM/MilkdropPresetFactory/PresetFrameIO.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@
55
#include <iostream>
66
#include <cmath>
77
#include "Renderer/BeatDetect.hpp"
8+
9+
#ifdef __SSE2__
810
#include <immintrin.h>
11+
#endif
912

1013

1114
PresetInputs::PresetInputs() : PipelineContext()

src/projectM-sdl/projectM_SDL_main.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,10 @@ int main(int argc, char *argv[]) {
8989
}
9090
}
9191
}
92+
// use GLES 2.0 (this may need adjusting)
93+
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 2);
94+
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 0);
95+
SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_ES);
9296

9397
#else
9498
// Disabling compatibility profile
@@ -151,8 +155,8 @@ int main(int argc, char *argv[]) {
151155

152156
#if !FAKE_AUDIO
153157
// get an audio input device
154-
app->openAudioInput();
155-
app->beginAudioCapture();
158+
if (app->openAudioInput())
159+
app->beginAudioCapture();
156160
#endif
157161

158162

0 commit comments

Comments
 (0)