diff options
author | José Fonseca <[email protected]> | 2011-12-23 02:57:29 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2012-01-11 12:51:40 -0700 |
commit | 6811704830b6637d7c9b19914bd3549143eeb3e5 (patch) | |
tree | cd27571aab7f907f4962a79c81ec65abc5089717 /src/gallium/state_trackers/wgl | |
parent | 2d80cad16e55b6eb11084045015a08fff43a7485 (diff) |
st/wgl: Return NULL for NULL HDCs in wglGetExtensionsStringARB.
WGL_ARB_extensions_string states that wglGetExtensionsStringARB should
return NULL for invalid HDCs. And some applications rely on it.
Reviewed-By: "Keith Whitwell" <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/wgl')
-rw-r--r-- | src/gallium/state_trackers/wgl/stw_ext_extensionsstring.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/wgl/stw_ext_extensionsstring.c b/src/gallium/state_trackers/wgl/stw_ext_extensionsstring.c index ecb326f1cf6..7cad49c9f84 100644 --- a/src/gallium/state_trackers/wgl/stw_ext_extensionsstring.c +++ b/src/gallium/state_trackers/wgl/stw_ext_extensionsstring.c @@ -47,7 +47,9 @@ WINGDIAPI const char * APIENTRY wglGetExtensionsStringARB( HDC hdc ) { - (void) hdc; + if (!hdc) { + return NULL; + } return stw_extension_string; } |