summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTilman Sauerbeck <tilman@code-monkey.de>2006-09-06 14:24:26 +0200
committerTilman Sauerbeck <tilman@code-monkey.de>2006-09-06 14:24:26 +0200
commit646a9927b8412b0224e260be46162782e87bf7c4 (patch)
tree7bdbee4006bb9fe42f3f16439ead10c963b47d18
parente7eccaba96e5bc4ff3ddde49b5245cd448bd5d9b (diff)
Don't set TAMASK in TEXCTL.
According to the specs this disables alpha transparency, which we probably don't want, but the tests say it's good.
-rw-r--r--src/mga_exa.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/mga_exa.c b/src/mga_exa.c
index d7cbf5d..6f09613 100644
--- a/src/mga_exa.c
+++ b/src/mga_exa.c
@@ -410,7 +410,7 @@ PrepareSourceTexture(int tmu, PicturePtr pSrcPicture, PixmapPtr pSrc)
int h_log2 = MGA_LOG2(h);
int texctl = MGA_PITCHLIN | ((pitch & (2048 - 1)) << 9) |
- MGA_CLAMPUV | MGA_NOPERSPECTIVE;
+ MGA_CLAMPUV | MGA_NOPERSPECTIVE | MGA_TAKEY;
int texctl2 = MGA_G400_TC2_MAGIC | MGA_TC2_CKSTRANSDIS;
for (i = 0; i < sizeof(texformats) / sizeof(texformats[0]); i++) {
@@ -420,12 +420,6 @@ PrepareSourceTexture(int tmu, PicturePtr pSrcPicture, PixmapPtr pSrc)
}
}
- if (PICT_FORMAT_A(pSrcPicture->format) != 0) {
- texctl |= MGA_TAKEY;
- } else {
- texctl |= MGA_TAMASK | MGA_TAKEY;
- }
-
if (pSrcPicture->repeat) {
texctl &= ~MGA_CLAMPUV;
}