X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fglx%2Fglxconfig.c;h=0e1643fcd8f6b6fb3d4935b3588203b820b9f14b;hb=00af91ca463a2486c043c635d94d9958fb1e8700;hp=1d9678f48cdac125a6845e32a13c1593673201ad;hpb=695cc370a280a637f411f5ff3877b3fd1c05e424;p=mesa.git diff --git a/src/glx/glxconfig.c b/src/glx/glxconfig.c index 1d9678f48cd..0e1643fcd8f 100644 --- a/src/glx/glxconfig.c +++ b/src/glx/glxconfig.c @@ -32,7 +32,6 @@ */ #include -#include "GL/glxint.h" #include #include @@ -188,6 +187,10 @@ glx_config_get(struct glx_config * mode, int attribute, int *value_return) *value_return = mode->yInverted; return 0; + case GLX_FRAMEBUFFER_SRGB_CAPABLE_EXT: + *value_return = mode->sRGBCapable; + return 0; + /* Applications are NOT allowed to query GLX_VISUAL_SELECT_GROUP_SGIX. * It is ONLY for communication between the GLX client and the GLX * server. @@ -226,7 +229,7 @@ glx_config_create_list(unsigned count) next = &base; for (i = 0; i < count; i++) { - *next = (struct glx_config *) malloc(size); + *next = malloc(size); if (*next == NULL) { glx_config_destroy_list(base); base = NULL; @@ -251,6 +254,7 @@ glx_config_create_list(unsigned count) (*next)->bindToMipmapTexture = GLX_DONT_CARE; (*next)->bindToTextureTargets = GLX_DONT_CARE; (*next)->yInverted = GLX_DONT_CARE; + (*next)->sRGBCapable = GLX_DONT_CARE; next = &((*next)->next); }