Skip to content

Commit 3d34d52

Browse files
committed
make it current
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
1 parent 7e2dc25 commit 3d34d52

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/platform/generic/egl/context.rs

+11
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,17 @@ pub(crate) unsafe fn create_context(
517517
return Err(Error::ContextCreationFailed(err));
518518
}
519519

520+
if egl.MakeCurrent(
521+
egl_display,
522+
egl::NO_SURFACE,
523+
egl::NO_SURFACE,
524+
egl::NO_CONTEXT,
525+
) == egl::FALSE
526+
{
527+
let err = egl.GetError().to_windowing_api_error();
528+
return Err(Error::MakeCurrentFailed(err));
529+
}
530+
520531
Ok(egl_context)
521532
})
522533
}

0 commit comments

Comments
 (0)