mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 14:47:41 +02:00
do the minimum include to use glew on linux
This commit is contained in:
parent
fa49342f00
commit
8b20f9d3a6
2 changed files with 12 additions and 2 deletions
|
@ -115,6 +115,13 @@ GLBackend::GLBackend() :
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(Q_OS_LINUX)
|
#if defined(Q_OS_LINUX)
|
||||||
|
GLenum err = glewInit();
|
||||||
|
if (GLEW_OK != err) {
|
||||||
|
/* Problem: glewInit failed, something is seriously wrong. */
|
||||||
|
qCDebug(gpulogging, "Error: %s\n", glewGetErrorString(err));
|
||||||
|
}
|
||||||
|
qCDebug(gpulogging, "Status: Using GLEW %s\n", glewGetString(GLEW_VERSION));
|
||||||
|
|
||||||
// TODO: Write the correct code for Linux...
|
// TODO: Write the correct code for Linux...
|
||||||
/* if (wglewGetExtension("WGL_EXT_swap_control")) {
|
/* if (wglewGetExtension("WGL_EXT_swap_control")) {
|
||||||
int swapInterval = wglGetSwapIntervalEXT();
|
int swapInterval = wglGetSwapIntervalEXT();
|
||||||
|
|
|
@ -34,8 +34,11 @@
|
||||||
#elif defined(ANDROID)
|
#elif defined(ANDROID)
|
||||||
|
|
||||||
#else
|
#else
|
||||||
#include <GL/gl.h>
|
|
||||||
#include <GL/glext.h>
|
#include <GL/glew.h>
|
||||||
|
#include <GL/wglew.h>
|
||||||
|
//#include <GL/gl.h>
|
||||||
|
//#include <GL/glext.h>
|
||||||
|
|
||||||
#define GPU_FEATURE_PROFILE GPU_LEGACY
|
#define GPU_FEATURE_PROFILE GPU_LEGACY
|
||||||
#define GPU_TRANSFORM_PROFILE GPU_LEGACY
|
#define GPU_TRANSFORM_PROFILE GPU_LEGACY
|
||||||
|
|
Loading…
Reference in a new issue