mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-10-23 22:38:45 -04:00
libobs-opengl: Use correct size for PIXELFORMATDESCRIPTOR
Issue detected by PVS Studio.
This commit is contained in:
1 parent
a200001d2a
commit
7f2dfd53a9
1 file changed
+1
-1
@@ -74,7 +74,7 @@ static inline int get_stencil_format_bits(enum gs_zstencil_format zsformat)
|
||||
static inline void init_dummy_pixel_format(PIXELFORMATDESCRIPTOR *pfd)
|
||||
{
|
||||
memset(pfd, 0, sizeof(PIXELFORMATDESCRIPTOR));
|
||||
pfd->nSize = sizeof(pfd);
|
||||
pfd->nSize = sizeof(PIXELFORMATDESCRIPTOR);
|
||||
pfd->nVersion = 1;
|
||||
pfd->iPixelType = PFD_TYPE_RGBA;
|
||||
pfd->cColorBits = 32;
|
||||
|
||||
Reference in new issue
Block a user