mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-24 01:58:16 +02:00
glx/windows: Fix compilation of driwindows_glx after driscreen changed from pointer to member
> ../src/glx/driwindows_glx.c: In function ‘driwindows_create_context’:
> ../src/glx/driwindows_glx.c:122:8: error: wrong type argument to unary exclamation mark
> 122 | if (!psc->base.driScreen)
> | ^
> ../src/glx/driwindows_glx.c: In function ‘driwindows_create_context_attribs’:
> ../src/glx/driwindows_glx.c:196:8: error: wrong type argument to unary exclamation mark
> 196 | if (!psc->base.driScreen || !config_base)
> | ^
Since the driScreen member of driwindows_screen is now a struct, not a
pointer, checking it for non-NULL-ness like this is an error.
Fixes: 1ce9aa3d65 ("mesa_interface: replace opaque __DRIscreen with struct dri_screen everywhere")
Signed-off-by: Jon Turney <jon.turney@dronecode.org.uk>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41421>
This commit is contained in:
parent
2f05e96d16
commit
464daf978e
1 changed files with 1 additions and 4 deletions
|
|
@ -119,9 +119,6 @@ driwindows_create_context(struct glx_screen *base,
|
|||
struct driwindows_screen *psc = (struct driwindows_screen *) base;
|
||||
windowsContext *shared = NULL;
|
||||
|
||||
if (!psc->base.driScreen)
|
||||
return NULL;
|
||||
|
||||
/* Check the renderType value */
|
||||
if (!validate_renderType_against_config(config_base, renderType))
|
||||
return NULL;
|
||||
|
|
@ -193,7 +190,7 @@ driwindows_create_context_attribs(struct glx_screen *base,
|
|||
identical values, so far
|
||||
*/
|
||||
|
||||
if (!psc->base.driScreen || !config_base)
|
||||
if (!config_base)
|
||||
return NULL;
|
||||
|
||||
/* Check the renderType value */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue