wgl: Check for PIPE_TEXTURE_USAGE_DISPLAY_TARGET support in exported color pixel...
authorJosé Fonseca <jfonseca@vmware.com>
Tue, 19 Jan 2010 14:13:44 +0000 (06:13 -0800)
committerJosé Fonseca <jfonseca@vmware.com>
Tue, 19 Jan 2010 14:14:12 +0000 (06:14 -0800)
Since all formats we export have PFD_DRAW_TO_WINDOW flag.

src/gallium/state_trackers/wgl/stw_pixelformat.c

index c310c78ccf1e5e4294aa1d26ae16dbf12e8e85d2..95e1957e0722b50317ec4f27144f196a0114b25d 100644 (file)
@@ -219,7 +219,8 @@ stw_pixelformat_init( void )
          const struct stw_pf_color_info *color = &stw_pf_color[j];
          
          if(!screen->is_format_supported(screen, color->format, PIPE_TEXTURE_2D, 
-                                         PIPE_TEXTURE_USAGE_RENDER_TARGET, 0))
+                                         PIPE_TEXTURE_USAGE_RENDER_TARGET |
+                                         PIPE_TEXTURE_USAGE_DISPLAY_TARGET, 0))
             continue;
          
          for(k = 0; k < Elements(stw_pf_doublebuffer); ++k) {