[Mesa-dev] [PATCH 2/8] glx: Add the extension string for GLX_ARB_framebuffer_sRGB

Ian Romanick idr at freedesktop.org
Wed Oct 24 10:08:41 PDT 2012


From: Ian Romanick <ian.d.romanick at intel.com>

>From the GLX perspective, the ARB and EXT extensions are identical.  Use
a single bit for both.

Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
Cc: Maciej Wieczorek <maciej.t.wieczorek at intel.com>
---
 src/glx/glxextensions.c | 1 +
 src/glx/glxextensions.h | 5 +++++
 2 files changed, 6 insertions(+)

diff --git a/src/glx/glxextensions.c b/src/glx/glxextensions.c
index 9332e61..caa6d99 100644
--- a/src/glx/glxextensions.c
+++ b/src/glx/glxextensions.c
@@ -74,6 +74,7 @@ static const struct extension_info known_glx_extensions[] = {
    { GLX(ARB_create_context),          VER(0,0), Y, N, N, N },
    { GLX(ARB_create_context_profile),  VER(0,0), Y, N, N, N },
    { GLX(ARB_create_context_robustness), VER(0,0), Y, N, N, N },
+   { GLX(ARB_framebuffer_sRGB),        VER(0,0), Y, Y, N, N },
    { GLX(ARB_get_proc_address),        VER(1,4), Y, N, Y, N },
    { GLX(ARB_multisample),             VER(1,4), Y, Y, N, N },
    { GLX(ATI_pixel_format_float),      VER(0,0), N, N, N, N },
diff --git a/src/glx/glxextensions.h b/src/glx/glxextensions.h
index 90c27a7..3c5d407 100644
--- a/src/glx/glxextensions.h
+++ b/src/glx/glxextensions.h
@@ -65,6 +65,11 @@ enum
    INTEL_swap_event_bit,
 };
 
+/* From the GLX perspective, the ARB and EXT extensions are identical.  Use a
+ * single bit for both.
+ */
+#define ARB_framebuffer_sRGB_bit EXT_framebuffer_sRGB_bit
+
 enum
 {
    GL_ARB_depth_texture_bit = 0,
-- 
1.7.11.4



More information about the mesa-dev mailing list