diff --git a/pixelgl/thread.go b/pixelgl/thread.go
index f24cc2c7a4a91fd2ee64dc6933173d826862bea3..c78c6e0388a3b6f050c861b32b7492fd8f12bffa 100644
--- a/pixelgl/thread.go
+++ b/pixelgl/thread.go
@@ -27,9 +27,7 @@ func init() {
 // It must be called under the presence of an active OpenGL context, e.g., always after calling window.MakeContextCurrent().
 // Also, always call this function when switching contexts.
 func Init() {
-	err := DoErr(func() error {
-		return gl.Init()
-	})
+	err := gl.Init()
 	if err != nil {
 		panic(err)
 	}