summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2011-11-04 17:13:53 +0000
committerDave Airlie <[email protected]>2011-11-04 17:17:17 +0000
commit26ebf9c5e106962aa440586296b8fde76ef0c76a (patch)
tree0b9eddaa266dcb7d6614b6ed06ecddc9ec024803 /src/mesa
parent71f1d468b4e183c45e4f76f7951beb44dd74a707 (diff)
radeon/r200: strip texture borders.
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/r200/r200_context.c2
-rw-r--r--src/mesa/drivers/dri/radeon/radeon_context.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/r200/r200_context.c b/src/mesa/drivers/dri/r200/r200_context.c
index 901172c9bfb..b33fc2a4744 100644
--- a/src/mesa/drivers/dri/r200/r200_context.c
+++ b/src/mesa/drivers/dri/r200/r200_context.c
@@ -276,6 +276,8 @@ GLboolean r200CreateContext( gl_api api,
ctx->Const.MaxCombinedTextureImageUnits = ctx->Const.MaxTextureUnits;
+ ctx->Const.StripTextureBorder = GL_TRUE;
+
i = driQueryOptioni( &rmesa->radeon.optionCache, "allow_large_textures");
/* FIXME: When no memory manager is available we should set this
diff --git a/src/mesa/drivers/dri/radeon/radeon_context.c b/src/mesa/drivers/dri/radeon/radeon_context.c
index ebe4e66526b..46dcafa6876 100644
--- a/src/mesa/drivers/dri/radeon/radeon_context.c
+++ b/src/mesa/drivers/dri/radeon/radeon_context.c
@@ -237,6 +237,8 @@ r100CreateContext( gl_api api,
ctx->Const.MaxTextureCoordUnits = ctx->Const.MaxTextureUnits;
ctx->Const.MaxCombinedTextureImageUnits = ctx->Const.MaxTextureUnits;
+ ctx->Const.StripTextureBorder = GL_TRUE;
+
i = driQueryOptioni( &rmesa->radeon.optionCache, "allow_large_textures");
/* FIXME: When no memory manager is available we should set this