Mesa (master): drisw: Enable SGI_make_current_read for direct contexts
Adam Jackson
ajax at kemper.freedesktop.org
Tue Nov 1 17:57:15 UTC 2011
Module: Mesa
Branch: master
Commit: 6d3d0ca9e9ef0d0a1e3ba0940f7127298e078a7d
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6d3d0ca9e9ef0d0a1e3ba0940f7127298e078a7d
Author: Adam Jackson <ajax at redhat.com>
Date: Tue Nov 1 13:52:48 2011 -0400
drisw: Enable SGI_make_current_read for direct contexts
Equivalent to glXMakeContextCurrent, which had better already work since
we advertise GLX 1.3.
Signed-off-by: Adam Jackson <ajax at redhat.com>
---
src/glx/drisw_glx.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/glx/drisw_glx.c b/src/glx/drisw_glx.c
index 21d0a0a..a150c61 100644
--- a/src/glx/drisw_glx.c
+++ b/src/glx/drisw_glx.c
@@ -506,6 +506,8 @@ driswBindExtensions(struct drisw_screen *psc, const __DRIextension **extensions)
{
int i;
+ __glXEnableDirectExtension(&psc->base, "GLX_SGI_make_current_read");
+
/* FIXME: Figure out what other extensions can be ported here from dri2. */
for (i = 0; extensions[i]; i++) {
if ((strcmp(extensions[i]->name, __DRI_TEX_BUFFER) == 0)) {
More information about the mesa-commit
mailing list