wined3d: Add WGL_ARB_pixel_format detection.
Right now we assume that the extension is there but this isn't always the case. The next patch in this series will add a non-WGL_ARB_pixel_format codepath to help VirtualBox and others.
This commit is contained in:
parent
da2e044125
commit
9181ddcd16
|
@ -1434,6 +1434,10 @@ static BOOL IWineD3DImpl_FillGLCaps(WineD3D_GL_Info *gl_info) {
|
||||||
gl_info->supported[WGL_ARB_PBUFFER] = TRUE;
|
gl_info->supported[WGL_ARB_PBUFFER] = TRUE;
|
||||||
TRACE_(d3d_caps)("FOUND: WGL_ARB_pbuffer support\n");
|
TRACE_(d3d_caps)("FOUND: WGL_ARB_pbuffer support\n");
|
||||||
}
|
}
|
||||||
|
if (!strcmp(ThisExtn, "WGL_ARB_pixel_format")) {
|
||||||
|
gl_info->supported[WGL_ARB_PIXEL_FORMAT] = TRUE;
|
||||||
|
TRACE_(d3d_caps)("FOUND: WGL_ARB_pixel_format support\n");
|
||||||
|
}
|
||||||
if (!strcmp(ThisExtn, "WGL_WINE_pixel_format_passthrough")) {
|
if (!strcmp(ThisExtn, "WGL_WINE_pixel_format_passthrough")) {
|
||||||
gl_info->supported[WGL_WINE_PIXEL_FORMAT_PASSTHROUGH] = TRUE;
|
gl_info->supported[WGL_WINE_PIXEL_FORMAT_PASSTHROUGH] = TRUE;
|
||||||
TRACE_(d3d_caps)("FOUND: WGL_WINE_pixel_format_passthrough support\n");
|
TRACE_(d3d_caps)("FOUND: WGL_WINE_pixel_format_passthrough support\n");
|
||||||
|
|
|
@ -3462,6 +3462,7 @@ typedef enum _GL_SupportedExt {
|
||||||
|
|
||||||
/* WGL extensions */
|
/* WGL extensions */
|
||||||
WGL_ARB_PBUFFER,
|
WGL_ARB_PBUFFER,
|
||||||
|
WGL_ARB_PIXEL_FORMAT,
|
||||||
WGL_WINE_PIXEL_FORMAT_PASSTHROUGH,
|
WGL_WINE_PIXEL_FORMAT_PASSTHROUGH,
|
||||||
|
|
||||||
OPENGL_SUPPORTED_EXT_END
|
OPENGL_SUPPORTED_EXT_END
|
||||||
|
|
Loading…
Reference in New Issue