dri/nv04: Fix maximum texture size.
authorFrancisco Jerez <currojerez@riseup.net>
Thu, 16 Sep 2010 15:15:38 +0000 (17:15 +0200)
committerFrancisco Jerez <currojerez@riseup.net>
Thu, 16 Sep 2010 17:44:21 +0000 (19:44 +0200)
src/mesa/drivers/dri/nouveau/nv04_context.c

index 1003afbca44a6b1b196b71fe577422cefa0b4e64..78703b0efa69bc0dec50a30dfb96d70e660b438c 100644 (file)
@@ -188,6 +188,7 @@ nv04_context_create(struct nouveau_screen *screen, const GLvisual *visual,
        hw->chan->flush_notify = nv04_channel_flush_notify;
 
        /* GL constants. */
+       ctx->Const.MaxTextureLevels = 11;
        ctx->Const.MaxTextureCoordUnits = NV04_TEXTURE_UNITS;
        ctx->Const.MaxTextureImageUnits = NV04_TEXTURE_UNITS;
        ctx->Const.MaxTextureUnits = NV04_TEXTURE_UNITS;