Comment 7 for bug 1316402

Revision history for this message
Daniel Schürmann (daschuer) wrote :

Here some useful info:
http://stackoverflow.com/questions/16609825/matrix-mode-for-2d-graphics-in-opengl-es-2

It seams that we need new waveforms to have the benefit of ES2.
For now, we can just disable openGL waveform parts in the Mixxx source codebase if
QT_OPENGL_ES_1 or QT_OPENGL_ES_2 is defined.

Here the header selection from the Qt code:

#if defined(Q_WS_MAC)
# include <OpenGL/gl.h>
#elif defined(QT_OPENGL_ES_1)
# if defined(Q_OS_MAC)
# include <OpenGLES/ES1/gl.h>
# else
# include <GLES/gl.h>
# endif
# ifndef GL_DOUBLE
# define GL_DOUBLE GL_FLOAT
# endif
# ifndef GLdouble
typedef GLfloat GLdouble;
# endif
#elif defined(QT_OPENGL_ES_2)
# if defined(Q_OS_MAC)
# include <OpenGLES/ES2/gl.h>
# else
# include <GLES2/gl2.h>
# endif
# ifndef GL_DOUBLE
# define GL_DOUBLE GL_FLOAT
# endif
# ifndef GLdouble
typedef GLfloat GLdouble;
# endif
#else
# include <GL/gl.h> <- this is active on Linux builds
#endif