mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 20:28:04 +02:00
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:
parent
49d83de072
commit
7d96e19b92
2 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -51,6 +51,8 @@ struct stw_pixelformat_info
|
|||
/** WGL_ARB_render_texture */
|
||||
boolean bindToTextureRGB;
|
||||
boolean bindToTextureRGBA;
|
||||
|
||||
int iPixelFormat;
|
||||
};
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue