st/mesa: always advertise texture_rectangle
authorMarek Olšák <maraeo@gmail.com>
Sat, 6 Mar 2010 17:09:16 +0000 (18:09 +0100)
committerMarek Olšák <maraeo@gmail.com>
Thu, 11 Mar 2010 01:32:08 +0000 (02:32 +0100)
src/mesa/state_tracker/st_extensions.c

index e03dd30f0f5bb1d3e8914e72289e3c9fa7125402..bc240e089388cb5d95d58b7bec5471066e92978c 100644 (file)
@@ -199,6 +199,7 @@ void st_init_extensions(struct st_context *st)
    ctx->Extensions.NV_blend_square = GL_TRUE;
    ctx->Extensions.NV_texgen_reflection = GL_TRUE;
    ctx->Extensions.NV_texture_env_combine4 = GL_TRUE;
+   ctx->Extensions.NV_texture_rectangle = GL_TRUE;
 
 #if FEATURE_OES_draw_texture
    ctx->Extensions.OES_draw_texture = GL_TRUE;
@@ -236,7 +237,6 @@ void st_init_extensions(struct st_context *st)
 
    if (screen->get_param(screen, PIPE_CAP_NPOT_TEXTURES)) {
       ctx->Extensions.ARB_texture_non_power_of_two = GL_TRUE;
-      ctx->Extensions.NV_texture_rectangle = GL_TRUE;
    }
 
    if (screen->get_param(screen, PIPE_CAP_MAX_TEXTURE_IMAGE_UNITS) > 1) {