From e25bd7fe548d75ccaf5c92cbc07c32211e1735af Mon Sep 17 00:00:00 2001 From: Eduardo Bart Date: Thu, 23 Aug 2012 12:37:26 -0300 Subject: [PATCH] Fix OpenGL ES compilation --- modules/client_stats/stats.lua | 2 +- src/framework/graphics/texture.cpp | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/client_stats/stats.lua b/modules/client_stats/stats.lua index 63012049..9857c8c1 100644 --- a/modules/client_stats/stats.lua +++ b/modules/client_stats/stats.lua @@ -75,7 +75,7 @@ function onConnect(protocol) post = post .. '&display_height=' .. g_window.getDisplayHeight() local message = '' - message = message .. "POST /report HTTP/1.0\r\n" + message = message .. "POST /report HTTP/1.1\r\n" message = message .. "Host: " .. HOST .. "\r\n" message = message .. "Accept: */*\r\n" message = message .. "Connection: close\r\n" diff --git a/src/framework/graphics/texture.cpp b/src/framework/graphics/texture.cpp index 5415d361..3aff20ec 100644 --- a/src/framework/graphics/texture.cpp +++ b/src/framework/graphics/texture.cpp @@ -235,8 +235,13 @@ void Texture::setupPixels(int level, const Size& size, uchar* pixels, int channe } GLenum internalFormat = GL_RGBA; + +#ifdef OPENGL_ES + //TODO +#else if(compress) internalFormat = GL_COMPRESSED_RGBA; +#endif glTexImage2D(GL_TEXTURE_2D, level, internalFormat, size.width(), size.height(), 0, format, GL_UNSIGNED_BYTE, pixels); }