GLES and SSE2 fix stuff

This commit is contained in:
revmischa
2018-07-28 16:30:30 +00:00
parent 3d4fe805ca
commit 23cd9c591e
3 changed files with 12 additions and 3 deletions

View File

@ -57,8 +57,10 @@
class InitCond;
class Param;
class Preset;
//#include <map>
#ifdef __SSE2__
#include <immintrin.h>
#endif
/* Parameter Type */

View File

@ -5,7 +5,10 @@
#include <iostream>
#include <cmath>
#include "Renderer/BeatDetect.hpp"
#ifdef __SSE2__
#include <immintrin.h>
#endif
PresetInputs::PresetInputs() : PipelineContext()

View File

@ -89,6 +89,10 @@ int main(int argc, char *argv[]) {
}
}
}
// use GLES 2.0 (this may need adjusting)
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 2);
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 0);
SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_ES);
#else
// Disabling compatibility profile
@ -151,8 +155,8 @@ int main(int argc, char *argv[]) {
#if !FAKE_AUDIO
// get an audio input device
app->openAudioInput();
app->beginAudioCapture();
if (app->openAudioInput())
app->beginAudioCapture();
#endif