mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 17:48:10 +02:00
intel: Check that we have a bufmgr or bail out when initializing the context.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
b14548ea32
commit
5abee283d3
1 changed files with 4 additions and 0 deletions
|
|
@ -594,6 +594,10 @@ intelInitContext(struct intel_context *intel,
|
|||
struct intel_screen *intelScreen = sPriv->private;
|
||||
int bo_reuse_mode;
|
||||
|
||||
/* we can't do anything without a connection to the device */
|
||||
if (intelScreen->bufmgr == NULL)
|
||||
return GL_FALSE;
|
||||
|
||||
if (!_mesa_initialize_context(&intel->ctx, mesaVis, shareCtx,
|
||||
functions, (void *) intel)) {
|
||||
printf("%s: failed to init mesa context\n", __FUNCTION__);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue