mirror of
https://github.com/projectM-visualizer/projectm.git
synced 2026-03-03 22:15:22 +00:00
GLES and SSE2 fix stuff
This commit is contained in:
@ -57,8 +57,10 @@
|
||||
class InitCond;
|
||||
class Param;
|
||||
class Preset;
|
||||
//#include <map>
|
||||
|
||||
#ifdef __SSE2__
|
||||
#include <immintrin.h>
|
||||
#endif
|
||||
|
||||
|
||||
/* Parameter Type */
|
||||
|
||||
@ -5,7 +5,10 @@
|
||||
#include <iostream>
|
||||
#include <cmath>
|
||||
#include "Renderer/BeatDetect.hpp"
|
||||
|
||||
#ifdef __SSE2__
|
||||
#include <immintrin.h>
|
||||
#endif
|
||||
|
||||
|
||||
PresetInputs::PresetInputs() : PipelineContext()
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user