internal/byteslice: rename package unsafe

All functions left in the old package unsafe were provided byte slice
views of other types. Rename the package accordingly and avoid a name
clash with the standard library package unsafe.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2021-03-11 11:27:02 +01:00
parent 86f10e33d7
commit 2328ddfeca
6 changed files with 21 additions and 19 deletions
+2 -2
View File
@@ -7,8 +7,8 @@ import (
"runtime"
"strings"
"gioui.org/internal/byteslice"
"gioui.org/internal/gl"
"gioui.org/internal/unsafe"
)
// FBO implements an intermediate sRGB FBO
@@ -71,7 +71,7 @@ func (s *FBO) Blit() {
s.c.Uniform1i(s.c.GetUniformLocation(prog, "tex"), 0)
s.quad = s.c.CreateBuffer()
s.c.BindBuffer(gl.ARRAY_BUFFER, s.quad)
coords := unsafe.BytesView([]float32{
coords := byteslice.Slice([]float32{
-1, +1, 0, 1,
+1, +1, 1, 1,
-1, -1, 0, 0,