mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-12 17:35:38 +00:00
SDL_windowsopengl.c: WGL: Fixed null-pointer dereference crash
Fixes #8968 Fixed crash after594a79c2f9(cherry picked from commita29f37c14a)
This commit is contained in:
parent
384fcea585
commit
fe297fc6d8
1 changed files with 4 additions and 4 deletions
|
|
@ -549,11 +549,11 @@ static int WIN_GL_ChoosePixelFormatARB(_THIS, int *iAttribs, float *fAttribs)
|
|||
_this->gl_data->wglChoosePixelFormatARB(hdc, iAttribs, fAttribs,
|
||||
1, &pixel_format,
|
||||
&matching);
|
||||
}
|
||||
|
||||
/* Check whether we actually got an SRGB capable buffer */
|
||||
_this->gl_data->wglGetPixelFormatAttribivARB(hdc, pixel_format, 0, 1, &qAttrib, &srgb);
|
||||
_this->gl_config.framebuffer_srgb_capable = srgb;
|
||||
/* Check whether we actually got an SRGB capable buffer */
|
||||
_this->gl_data->wglGetPixelFormatAttribivARB(hdc, pixel_format, 0, 1, &qAttrib, &srgb);
|
||||
_this->gl_config.framebuffer_srgb_capable = srgb;
|
||||
}
|
||||
|
||||
_this->gl_data->wglMakeCurrent(hdc, NULL);
|
||||
_this->gl_data->wglDeleteContext(hglrc);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue