sw/wrapper: Make sure targets are textures
authorJakob Bornecrantz <wallbraker@gmail.com>
Sun, 16 May 2010 01:41:29 +0000 (02:41 +0100)
committerJakob Bornecrantz <wallbraker@gmail.com>
Sun, 16 May 2010 11:22:19 +0000 (12:22 +0100)
src/gallium/winsys/sw/wrapper/wrapper_sw_winsys.c

index d4d4270eb864ab91b9522715de823e8218c77dc4..b63a5c0c0ed0d08e3ebf6fae51fbd04b48b098de 100644 (file)
@@ -145,6 +145,7 @@ wsw_dt_create(struct sw_winsys *ws,
     * XXX Why don't we just get the template.
     */
    memset(&templ, 0, sizeof(templ));
+   templ.target = PIPE_TEXTURE_2D;
    templ.width0 = width;
    templ.height0 = height;
    templ.format = format;