summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/nouveau/nv20_context.c
diff options
context:
space:
mode:
authorFrancisco Jerez <[email protected]>2010-02-25 02:15:54 +0100
committerFrancisco Jerez <[email protected]>2010-02-25 18:37:38 +0100
commita7b8d105a6efe4056633f7129f80aac1f13cc246 (patch)
treeec4989f7c5f4bc0e2a70a7e88089bafc73ce9d92 /src/mesa/drivers/dri/nouveau/nv20_context.c
parent7432ffbdfa52b51b720bdde5cd50c497862b8806 (diff)
dri/nouveau: Support rectangle textures.
Diffstat (limited to 'src/mesa/drivers/dri/nouveau/nv20_context.c')
-rw-r--r--src/mesa/drivers/dri/nouveau/nv20_context.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/nouveau/nv20_context.c b/src/mesa/drivers/dri/nouveau/nv20_context.c
index a80062f5f1e..635b5c09968 100644
--- a/src/mesa/drivers/dri/nouveau/nv20_context.c
+++ b/src/mesa/drivers/dri/nouveau/nv20_context.c
@@ -31,6 +31,11 @@
#include "nv10_driver.h"
#include "nv20_driver.h"
+static const struct dri_extension nv20_extensions[] = {
+ { "GL_EXT_texture_rectangle", NULL },
+ { NULL, NULL }
+};
+
static void
nv20_hwctx_init(GLcontext *ctx)
{
@@ -394,6 +399,8 @@ nv20_context_create(struct nouveau_screen *screen, const GLvisual *visual,
if (!nouveau_context_init(ctx, screen, visual, share_ctx))
goto fail;
+ driInitExtensions(ctx, nv20_extensions, GL_FALSE);
+
/* GL constants. */
ctx->Const.MaxTextureCoordUnits = NV20_TEXTURE_UNITS;
ctx->Const.MaxTextureImageUnits = NV20_TEXTURE_UNITS;