mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 04:48:08 +02:00
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.
This commit is contained in:
parent
5e870f4fe9
commit
7a39a5c1cb
1 changed files with 2 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue