mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 15:44:36 +00:00
cleanup
This commit is contained in:
parent
6e692ea9cf
commit
4cf6a30e05
2 changed files with 8 additions and 10 deletions
|
|
@ -22,15 +22,12 @@
|
||||||
|
|
||||||
#ifndef T_GL_H
|
#ifndef T_GL_H
|
||||||
#define T_GL_H
|
#define T_GL_H
|
||||||
#include "GL/glew.h"
|
|
||||||
|
|
||||||
#if defined (TORQUE_OS_WIN)
|
#include <epoxy/gl.h>
|
||||||
// This doesn't work on Mesa drivers.
|
|
||||||
#define gglHasExtension(EXTENSION) GLEW_##EXTENSION
|
// JTH: This is slow, we should probably check extensions once and cache them
|
||||||
#else
|
// directly inside of some compatability table.
|
||||||
// Slower but reliably detects extensions on Mesa.
|
#define gglHasExtension(EXTENSION) epoxy_has_gl_extension("GL_" #EXTENSION)
|
||||||
#define gglHasExtension(EXTENSION) glewGetExtension("GL_" # EXTENSION)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -28,9 +28,10 @@
|
||||||
#ifdef TORQUE_OS_LINUX
|
#ifdef TORQUE_OS_LINUX
|
||||||
|
|
||||||
#include "tGL.h"
|
#include "tGL.h"
|
||||||
#include "GL/glxew.h"
|
#include <epoxy/glx.h>
|
||||||
|
|
||||||
#define gglHasXExtension(EXTENSION) GLXEW##EXTENSION
|
// TODO glx
|
||||||
|
#define gglHasXExtension(EXTENSION)
|
||||||
|
|
||||||
#endif //TORQUE_OS_LINUX
|
#endif //TORQUE_OS_LINUX
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue