These fields need to be set or some texture_from_pixmap code fails to
find a FBConfig it can use for texturing.
---
 src/mesa/drivers/dri/common/utils.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

Hi,

These values need to be set so that texture_from_pixmap code can find a proper
FBConfig to use for texturing.   Hopefully this is the right spot to set them 
;o)
Another patch sent to xorg list passes these values over the wire when FBConfigs
are requested.   This should close Bug# 11082.

Thanks,
Sean

diff --git a/src/mesa/drivers/dri/common/utils.c 
b/src/mesa/drivers/dri/common/utils.c
index 6a189e7..5611622 100644
--- a/src/mesa/drivers/dri/common/utils.c
+++ b/src/mesa/drivers/dri/common/utils.c
@@ -683,7 +683,7 @@ driFillInModes( __GLcontextModes ** ptr_to_modes,
 
                modes->visualType = visType;
                modes->renderType = GLX_RGBA_BIT;
-               modes->drawableType = GLX_WINDOW_BIT;
+               modes->drawableType = GLX_WINDOW_BIT | GLX_PIXMAP_BIT;
                modes->rgbMode = GL_TRUE;
 
                if ( db_modes[i] == GLX_NONE ) {
@@ -700,6 +700,11 @@ driFillInModes( __GLcontextModes ** ptr_to_modes,
                                           modes->accumAlphaBits) > 0);
                modes->haveDepthBuffer = (modes->depthBits > 0);
                modes->haveStencilBuffer = (modes->stencilBits > 0);
+               modes->bindToTextureTargets  = modes->rgbMode ?
+                       GLX_TEXTURE_1D_BIT_EXT | GLX_TEXTURE_2D_BIT_EXT |
+                       GLX_TEXTURE_RECTANGLE_BIT_EXT : 0;
+               modes->bindToTextureRgb = (modes->rgbMode) ? GL_TRUE : GL_FALSE;
+               modes->bindToTextureRgba = (modes->rgbMode && modes->alphaBits) 
? GL_TRUE : GL_FALSE;
 
                modes = modes->next;
            }
-- 
1.5.4.4.552.g5cf90a

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
--
_______________________________________________
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to