diff --git a/src/glx/driwindows_glx.c b/src/glx/driwindows_glx.c index 2cc03f36d91..5264f0b38d2 100644 --- a/src/glx/driwindows_glx.c +++ b/src/glx/driwindows_glx.c @@ -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 */