graphicsdriver/opengl: Unexpose NewShader

This commit is contained in:
Hajime Hoshi 2020-08-08 00:57:40 +09:00
parent 5a5a45a42f
commit 28c638cb5b
2 changed files with 2 additions and 2 deletions

View File

@ -271,7 +271,7 @@ func (g *Graphics) MaxImageSize() int {
}
func (g *Graphics) NewShader(program *shaderir.Program) (driver.Shader, error) {
s, err := NewShader(g.genNextShaderID(), g, program)
s, err := newShader(g.genNextShaderID(), g, program)
if err != nil {
return nil, err
}

View File

@ -30,7 +30,7 @@ type Shader struct {
p program
}
func NewShader(id driver.ShaderID, graphics *Graphics, program *shaderir.Program) (*Shader, error) {
func newShader(id driver.ShaderID, graphics *Graphics, program *shaderir.Program) (*Shader, error) {
s := &Shader{
id: id,
graphics: graphics,