From a722768da9e6ea21d91b40a7c5d930cc5b7b5313 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Sat, 6 Mar 2021 10:24:33 +0100 Subject: [PATCH] gpu/internal/opengl: rename and make internal the OpenGL driver It is no longer necessary for outside users of package gpu to explicitly initialize a specific driver. The Direct3D driver is already internal, this moves the OpenGL driver internally as well. The rename to opengl is to avoid the name clash with the low-level "gioui.org/internal/glimpl" package that we're about to rename. Signed-off-by: Elias Naur --- gpu/gpu.go | 2 +- gpu/{gl => internal/opengl}/backend.go | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename gpu/{gl => internal/opengl}/backend.go (100%) diff --git a/gpu/gpu.go b/gpu/gpu.go index f63422aa..41604fa0 100644 --- a/gpu/gpu.go +++ b/gpu/gpu.go @@ -30,8 +30,8 @@ import ( "gioui.org/op/clip" // Register backends. - _ "gioui.org/gpu/gl" _ "gioui.org/gpu/internal/d3d11" + _ "gioui.org/gpu/internal/opengl" ) type GPU interface { diff --git a/gpu/gl/backend.go b/gpu/internal/opengl/backend.go similarity index 100% rename from gpu/gl/backend.go rename to gpu/internal/opengl/backend.go