From 28c638cb5be055dbf2fcc5eae4a5fbc2a194845b Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sat, 8 Aug 2020 00:57:40 +0900 Subject: [PATCH] graphicsdriver/opengl: Unexpose NewShader --- internal/graphicsdriver/opengl/graphics.go | 2 +- internal/graphicsdriver/opengl/shader.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/graphicsdriver/opengl/graphics.go b/internal/graphicsdriver/opengl/graphics.go index fb6e31ff1..d044f4ef6 100644 --- a/internal/graphicsdriver/opengl/graphics.go +++ b/internal/graphicsdriver/opengl/graphics.go @@ -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 } diff --git a/internal/graphicsdriver/opengl/shader.go b/internal/graphicsdriver/opengl/shader.go index bd65548f4..ff54cb408 100644 --- a/internal/graphicsdriver/opengl/shader.go +++ b/internal/graphicsdriver/opengl/shader.go @@ -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,