internal/gl: rename internal/glimpl

Now that the OpenGL driver package is named "opengl", we can finally get
rid of the ugly "glimpl" name.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2021-03-06 10:31:35 +01:00
parent a722768da9
commit 7bc0603d7e
17 changed files with 221 additions and 221 deletions
+3 -3
View File
@@ -11,12 +11,12 @@ import (
"strings"
"gioui.org/gpu"
"gioui.org/internal/glimpl"
"gioui.org/internal/gl"
"gioui.org/internal/srgb"
)
type Context struct {
c *glimpl.Functions
c *gl.Functions
disp _EGLDisplay
eglCtx *eglContext
eglSurf _EGLSurface
@@ -105,7 +105,7 @@ func NewContext(disp NativeDisplayType) (*Context, error) {
if err != nil {
return nil, err
}
f, err := glimpl.NewFunctions(nil)
f, err := gl.NewFunctions(nil)
if err != nil {
return nil, err
}
+2 -2
View File
@@ -10,7 +10,7 @@ import (
syscall "golang.org/x/sys/windows"
"gioui.org/internal/glimpl"
"gioui.org/internal/gl"
gunsafe "gioui.org/internal/unsafe"
)
@@ -57,7 +57,7 @@ func loadDLLs() error {
if err := loadDLL(libEGL, "libEGL.dll"); err != nil {
return err
}
if err := loadDLL(glimpl.LibGLESv2, "libGLESv2.dll"); err != nil {
if err := loadDLL(gl.LibGLESv2, "libGLESv2.dll"); err != nil {
return err
}
// d3dcompiler_47.dll is needed internally for shader compilation to function.