wgl: Add iPixelFormat to stw_pixelformat_info

Reviewed-by: Charmaine Lee <charmainel@vmware.com>
Reviewed By: Bill Kristiansen <billkris@microsoft.com>

Acked-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12727>
This commit is contained in:
Jesse Natalie 2021-09-04 07:58:17 -07:00 committed by Marge Bot
parent 49d83de072
commit 7d96e19b92
2 changed files with 3 additions and 0 deletions

View file

@ -154,6 +154,7 @@ stw_pixelformat_add(struct stw_device *stw_dev,
memset(pfi, 0, sizeof *pfi);
pfi->iPixelFormat = util_dynarray_num_elements(&stw_dev->pixelformats, struct stw_pixelformat_info);
pfi->pfd.nSize = sizeof pfi->pfd;
pfi->pfd.nVersion = 1;

View file

@ -51,6 +51,8 @@ struct stw_pixelformat_info
/** WGL_ARB_render_texture */
boolean bindToTextureRGB;
boolean bindToTextureRGBA;
int iPixelFormat;
};
void