diff options
author | Keith Packard <keithp@keithp.com> | 2013-10-29 09:37:30 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2013-10-29 09:37:30 -0700 |
commit | b32a4c91ccd479638c2bd2c0143b6ea170c717d1 (patch) | |
tree | 6fe82e8edeba911311efd01784fa129bb0c7e873 /glx/glxdri2.c | |
parent | be6680967a479eedbcab2fe1718c5f981e1029c7 (diff) | |
parent | c671e935e7c44d4711ba9588ee96cb9796b879e6 (diff) |
Merge remote-tracking branch 'idr/glx-float-fbconfig'
Diffstat (limited to 'glx/glxdri2.c')
-rw-r--r-- | glx/glxdri2.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/glx/glxdri2.c b/glx/glxdri2.c index f6a7c06db..1d74c8f5a 100644 --- a/glx/glxdri2.c +++ b/glx/glxdri2.c @@ -841,6 +841,11 @@ glxDRILeaveVT(ScrnInfoPtr scrn) scrn->LeaveVT = glxDRILeaveVT; } +/** + * Initialize extension flags in glx_enable_bits when a new screen is created + * + * @param screen The screen where glx_enable_bits are to be set. + */ static void initializeExtensions(__GLXDRIscreen * screen) { @@ -885,6 +890,12 @@ initializeExtensions(__GLXDRIscreen * screen) LogMessage(X_INFO, "AIGLX: enabled GLX_EXT_framebuffer_sRGB\n"); } + /* enable ARB_fbconfig_float extension (even if there are no float fbconfigs) */ + { + __glXEnableExtension(screen->glx_enable_bits, "GLX_ARB_fbconfig_float"); + LogMessage(X_INFO, "AIGLX: enabled GLX_ARB_fbconfig_float\n"); + } + for (i = 0; extensions[i]; i++) { #ifdef __DRI_READ_DRAWABLE if (strcmp(extensions[i]->name, __DRI_READ_DRAWABLE) == 0) { |