Skip to content

Commit 2b83133

Browse files
committed
includes/GL: remove duplicated extension declarations from glx.h
All three of GLX_NV_float_buffer, GLX_EXT_texture_from_pixmap and GLX_MESA_query_renderer have been in glxext.h for a while now. As such we can drop this workaround/hack from the header. v2: Remove the comment about GLX_NV_float_buffer. Signed-off-by: Emil Velikov <[email protected]> Reviewed-by: Brian Paul <[email protected]> (v1)
1 parent 6f2d889 commit 2b83133

File tree

1 file changed

+0
-92
lines changed

1 file changed

+0
-92
lines changed

include/GL/glx.h

-92
Original file line numberDiff line numberDiff line change
@@ -368,18 +368,6 @@ extern Bool glXDrawableAttribARB(Display *dpy, GLXDrawable draw, const int *attr
368368
#endif /* GLX_ARB_render_texture */
369369

370370

371-
/*
372-
* Remove this when glxext.h is updated.
373-
*/
374-
#ifndef GLX_NV_float_buffer
375-
#define GLX_NV_float_buffer 1
376-
377-
#define GLX_FLOAT_COMPONENTS_NV 0x20B0
378-
379-
#endif /* GLX_NV_float_buffer */
380-
381-
382-
383371
/*
384372
* #?. GLX_MESA_swap_frame_usage
385373
*/
@@ -415,86 +403,6 @@ typedef int (*PFNGLXGETSWAPINTERVALMESAPROC)(void);
415403
#endif /* GLX_MESA_swap_control */
416404

417405

418-
419-
/*
420-
* #?. GLX_EXT_texture_from_pixmap
421-
* XXX not finished?
422-
*/
423-
#ifndef GLX_EXT_texture_from_pixmap
424-
#define GLX_EXT_texture_from_pixmap 1
425-
426-
#define GLX_BIND_TO_TEXTURE_RGB_EXT 0x20D0
427-
#define GLX_BIND_TO_TEXTURE_RGBA_EXT 0x20D1
428-
#define GLX_BIND_TO_MIPMAP_TEXTURE_EXT 0x20D2
429-
#define GLX_BIND_TO_TEXTURE_TARGETS_EXT 0x20D3
430-
#define GLX_Y_INVERTED_EXT 0x20D4
431-
432-
#define GLX_TEXTURE_FORMAT_EXT 0x20D5
433-
#define GLX_TEXTURE_TARGET_EXT 0x20D6
434-
#define GLX_MIPMAP_TEXTURE_EXT 0x20D7
435-
436-
#define GLX_TEXTURE_FORMAT_NONE_EXT 0x20D8
437-
#define GLX_TEXTURE_FORMAT_RGB_EXT 0x20D9
438-
#define GLX_TEXTURE_FORMAT_RGBA_EXT 0x20DA
439-
440-
#define GLX_TEXTURE_1D_BIT_EXT 0x00000001
441-
#define GLX_TEXTURE_2D_BIT_EXT 0x00000002
442-
#define GLX_TEXTURE_RECTANGLE_BIT_EXT 0x00000004
443-
444-
#define GLX_TEXTURE_1D_EXT 0x20DB
445-
#define GLX_TEXTURE_2D_EXT 0x20DC
446-
#define GLX_TEXTURE_RECTANGLE_EXT 0x20DD
447-
448-
#define GLX_FRONT_LEFT_EXT 0x20DE
449-
#define GLX_FRONT_RIGHT_EXT 0x20DF
450-
#define GLX_BACK_LEFT_EXT 0x20E0
451-
#define GLX_BACK_RIGHT_EXT 0x20E1
452-
#define GLX_FRONT_EXT GLX_FRONT_LEFT_EXT
453-
#define GLX_BACK_EXT GLX_BACK_LEFT_EXT
454-
#define GLX_AUX0_EXT 0x20E2
455-
#define GLX_AUX1_EXT 0x20E3
456-
#define GLX_AUX2_EXT 0x20E4
457-
#define GLX_AUX3_EXT 0x20E5
458-
#define GLX_AUX4_EXT 0x20E6
459-
#define GLX_AUX5_EXT 0x20E7
460-
#define GLX_AUX6_EXT 0x20E8
461-
#define GLX_AUX7_EXT 0x20E9
462-
#define GLX_AUX8_EXT 0x20EA
463-
#define GLX_AUX9_EXT 0x20EB
464-
465-
extern void glXBindTexImageEXT(Display *dpy, GLXDrawable drawable, int buffer, const int *attrib_list);
466-
extern void glXReleaseTexImageEXT(Display *dpy, GLXDrawable drawable, int buffer);
467-
468-
#endif /* GLX_EXT_texture_from_pixmap */
469-
470-
471-
#ifndef GLX_MESA_query_renderer
472-
#define GLX_MESA_query_renderer 1
473-
474-
#define GLX_RENDERER_VENDOR_ID_MESA 0x8183
475-
#define GLX_RENDERER_DEVICE_ID_MESA 0x8184
476-
#define GLX_RENDERER_VERSION_MESA 0x8185
477-
#define GLX_RENDERER_ACCELERATED_MESA 0x8186
478-
#define GLX_RENDERER_VIDEO_MEMORY_MESA 0x8187
479-
#define GLX_RENDERER_UNIFIED_MEMORY_ARCHITECTURE_MESA 0x8188
480-
#define GLX_RENDERER_PREFERRED_PROFILE_MESA 0x8189
481-
#define GLX_RENDERER_OPENGL_CORE_PROFILE_VERSION_MESA 0x818A
482-
#define GLX_RENDERER_OPENGL_COMPATIBILITY_PROFILE_VERSION_MESA 0x818B
483-
#define GLX_RENDERER_OPENGL_ES_PROFILE_VERSION_MESA 0x818C
484-
#define GLX_RENDERER_OPENGL_ES2_PROFILE_VERSION_MESA 0x818D
485-
#define GLX_RENDERER_ID_MESA 0x818E
486-
487-
Bool glXQueryRendererIntegerMESA(Display *dpy, int screen, int renderer, int attribute, unsigned int *value);
488-
Bool glXQueryCurrentRendererIntegerMESA(int attribute, unsigned int *value);
489-
const char *glXQueryRendererStringMESA(Display *dpy, int screen, int renderer, int attribute);
490-
const char *glXQueryCurrentRendererStringMESA(int attribute);
491-
492-
typedef Bool (*PFNGLXQUERYRENDERERINTEGERMESAPROC) (Display *dpy, int screen, int renderer, int attribute, unsigned int *value);
493-
typedef Bool (*PFNGLXQUERYCURRENTRENDERERINTEGERMESAPROC) (int attribute, unsigned int *value);
494-
typedef const char *(*PFNGLXQUERYRENDERERSTRINGMESAPROC) (Display *dpy, int screen, int renderer, int attribute);
495-
typedef const char *(*PFNGLXQUERYCURRENTRENDERERSTRINGMESAPROC) (int attribute);
496-
#endif /* GLX_MESA_query_renderer */
497-
498406
/*** Should these go here, or in another header? */
499407
/*
500408
** GLX Events

0 commit comments

Comments
 (0)