svga: Fix texture cube param cap
authorJakob Bornecrantz <jakob@vmware.com>
Thu, 15 Dec 2011 12:04:56 +0000 (13:04 +0100)
committerJakob Bornecrantz <jakob@vmware.com>
Thu, 5 Jan 2012 16:23:32 +0000 (17:23 +0100)
Spotted by Thomas Hellstrom.

Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
src/gallium/drivers/svga/svga_screen.c

index e8970effcce38e1606aa0ead05cf71d058199fde..0b4da15e226954e78c5e62459c1101d1276bcbf6 100644 (file)
@@ -185,8 +185,8 @@ svga_get_param(struct pipe_screen *screen, enum pipe_cap param)
        * No mechanism to query the host, and at least limited to 2048x2048 on
        * certain hardware.
        */
-      return MIN2(screen->get_paramf(screen, PIPE_CAP_MAX_TEXTURE_2D_LEVELS),
-                  12.0 /* 2048x2048 */);
+      return MIN2(screen->get_param(screen, PIPE_CAP_MAX_TEXTURE_2D_LEVELS),
+                  12 /* 2048x2048 */);
 
    case PIPE_CAP_BLEND_EQUATION_SEPARATE: /* req. for GL 1.5 */
       return 1;