summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordok666 <dok666>2003-05-18 13:51:28 +0000
committerdok666 <dok666>2003-05-18 13:51:28 +0000
commit2b315c921b57aa78bf23364a4198118288902c7b (patch)
tree67be5320931d8daa6973f4ebe83bc19b3f52889b
parent8d3d163dad4a95517932d661bfe42783a66e68c2 (diff)
Allow zero sized card texture heap (using AGP textures only).
-rw-r--r--src/mesa/drivers/dri/mga/server/mga_dri.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/mga/server/mga_dri.c b/src/mesa/drivers/dri/mga/server/mga_dri.c
index 0b3e0f01046..b355631edc4 100644
--- a/src/mesa/drivers/dri/mga/server/mga_dri.c
+++ b/src/mesa/drivers/dri/mga/server/mga_dri.c
@@ -477,7 +477,7 @@ static int MGAMemoryInit( struct DRIDriverContextRec *ctx, MGAPtr pMga )
*/
pMga->textureSize = ctx->shared.fbSize;
- if (pMga->textureSize <= 0)
+ if (pMga->textureSize < 0)
return 0;
l = mylog2( pMga->textureSize / MGA_NR_TEX_REGIONS );