+#endif //USE_GLES2
+
+#define GL_COLOR_ATTACHMENT0 0x8CE0
+#define GL_COLOR_ATTACHMENT1 0x8CE1
+#define GL_COLOR_ATTACHMENT2 0x8CE2
+#define GL_COLOR_ATTACHMENT3 0x8CE3
+#define GL_COLOR_ATTACHMENT4 0x8CE4
+#define GL_COLOR_ATTACHMENT5 0x8CE5
+#define GL_COLOR_ATTACHMENT6 0x8CE6
+#define GL_COLOR_ATTACHMENT7 0x8CE7
+#define GL_COLOR_ATTACHMENT8 0x8CE8
+#define GL_COLOR_ATTACHMENT9 0x8CE9
+#define GL_COLOR_ATTACHMENT10 0x8CEA
+#define GL_COLOR_ATTACHMENT11 0x8CEB
+#define GL_COLOR_ATTACHMENT12 0x8CEC
+#define GL_COLOR_ATTACHMENT13 0x8CED
+#define GL_COLOR_ATTACHMENT14 0x8CEE
+#define GL_COLOR_ATTACHMENT15 0x8CEF
+
+#define GL_RGBA32F 0x8814
+#define GL_RGB32F 0x8815
+#define GL_ALPHA32F 0x8816
+#define GL_INTENSITY32F 0x8817
+#define GL_LUMINANCE32F 0x8818
+#define GL_LUMINANCE_ALPHA32F 0x8819
+#define GL_RGBA16F 0x881A
+#define GL_RGB16F 0x881B
+#define GL_ALPHA16F 0x881C
+#define GL_INTENSITY16F 0x881D
+#define GL_LUMINANCE16F 0x881E
+#define GL_LUMINANCE_ALPHA16F 0x881F
+
+#define GL_TEXTURE_3D 0x806F
+
+#define GL_HALF_FLOAT 0x140B
+#define GL_NUM_EXTENSIONS 0x821D
+
+
+//====================================================
+
+//#define DEBUGGL
+
+#ifdef DEBUGGL
+void GL_PrintError(GLenum errornumber, const char *filename, unsigned int linenumber);
+#define CHECKGLERROR { \
+ if (gl_paranoid.integer) { \
+ GLenum gl_errornumber; \
+ if (gl_printcheckerror.integer) \
+ Con_Printf("CHECKGLERROR at %s:%d\n", __FILE__, __LINE__); \
+ if (qglGetError) /* bones_was_here: is this pointer check still necessary? */ \
+ while ((gl_errornumber = qglGetError())) \
+ GL_PrintError(gl_errornumber, __FILE__, __LINE__); \
+ }}
+#else
+#define CHECKGLERROR
+#endif //DEBUGGL
+