diff options
author | José Fonseca <jfonseca@vmware.com> | 2010-01-19 06:13:44 -0800 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2010-01-19 06:14:12 -0800 |
commit | 7a39a5c1cb5087a1b8247f9bed59bf9374717cb3 (patch) | |
tree | 571fbd4c44d7a398fd85248ebfbe8d28a74171ed /src | |
parent | 5e870f4fe9e71b7f467f2a0b03934352f90846cc (diff) |
wgl: Check for PIPE_TEXTURE_USAGE_DISPLAY_TARGET support in exported color pixel formats.
Since all formats we export have PFD_DRAW_TO_WINDOW flag.
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/state_trackers/wgl/stw_pixelformat.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/wgl/stw_pixelformat.c b/src/gallium/state_trackers/wgl/stw_pixelformat.c index c310c78ccf..95e1957e07 100644 --- a/src/gallium/state_trackers/wgl/stw_pixelformat.c +++ b/src/gallium/state_trackers/wgl/stw_pixelformat.c @@ -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) { |