diff --git a/src/framework/graphics/glutil.h b/src/framework/graphics/glutil.h index be10143a..d6295a09 100644 --- a/src/framework/graphics/glutil.h +++ b/src/framework/graphics/glutil.h @@ -27,9 +27,22 @@ #if OPENGL_ES==2 #include #elif OPENGL_ES==1 -#include #include +#define GL_FRAMEBUFFER 0x8D40 +#define GL_COLOR_ATTACHMENT0 0x8CE0 +#define GL_FRAMEBUFFER_COMPLETE 0x8CD5 +#define GL_STREAM_DRAW 0x88E0 +#define GL_STATIC_DRAW 0x88E4 +#define GL_DYNAMIC_DRAW 0x88E8 +#define GL_FRAGMENT_SHADER 0x8B30 +#define GL_VERTEX_SHADER 0x8B31 +#define GL_COMPILE_STATUS 0x8B81 +#define GL_INFO_LOG_LENGTH 0x8B84 +#define GL_LINK_STATUS 0x8B82 + +typedef char GLchar; + // define OpenGL ES 2.0 API just to make compile, it wont actually be used inline void glBindFramebuffer (GLenum target, GLuint framebuffer) { } inline void glDeleteFramebuffers (GLsizei n, const GLuint* framebuffers) { } diff --git a/src/framework/sound/soundmanager.cpp b/src/framework/sound/soundmanager.cpp index 43ec82c5..a6a9bff5 100644 --- a/src/framework/sound/soundmanager.cpp +++ b/src/framework/sound/soundmanager.cpp @@ -224,8 +224,8 @@ SoundSourcePtr SoundManager::createSoundSource(const std::string& filename) streamSource->setSoundFile(soundFile); source = streamSource; -#ifdef __linux - // due to OpenAL implementation bug stereo buffers are always downmixed to mono on linux systems +#if defined __linux && !defined OPENGLES + // due to OpenAL implementation bug, stereo buffers are always downmixed to mono on linux systems // this is hack to work around the issue // solution taken from http://opensource.creative.com/pipermail/openal/2007-April/010355.html if(soundFile->getSampleFormat() == AL_FORMAT_STEREO16) {