[Android] Workaround transparency issues on some Android devices

This commit is contained in:
Jonathan De Wachter 2014-06-20 03:42:04 +02:00
parent b542785ed9
commit 3e9f842e59

View File

@ -34,8 +34,14 @@
#include <SFML/OpenGL.hpp>
#ifdef SFML_SYSTEM_ANDROID
// Hack to make transparency working on some Android devices
#define GLEXT_blend_func_separate false
#define GLEXT_blend_equation_separate false
#else
#define GLEXT_blend_func_separate GL_OES_blend_func_separate
#define GLEXT_blend_equation_separate GL_OES_blend_equation_separate
#endif
#define GLEXT_glBlendFuncSeparate glBlendFuncSeparateOES
#define GLEXT_glBlendEquationSeparate glBlendEquationSeparateOES
#define GLEXT_framebuffer_object GL_OES_framebuffer_object