diff --git a/pixelgl/vertex.go b/pixelgl/vertex.go
index 19cef47546e3ea39ef870c9253e7fb19aa3d7764..f112daee242cff7e686418f28334555057020a8f 100644
--- a/pixelgl/vertex.go
+++ b/pixelgl/vertex.go
@@ -70,12 +70,12 @@ const (
 // From the user's points of view, VertexArray is an array of vertices that can be drawn.
 type VertexArray struct {
 	parent Doer
+	vao    uint32
+	vbo    uint32
 	format VertexFormat
 	stride int
 	count  int
 	attrs  map[Attr]int
-	vao    uint32
-	vbo    uint32
 	mode   VertexDrawMode
 }