mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
graphicsdriver/opengl: Unexpose NewShader
This commit is contained in:
parent
5a5a45a42f
commit
28c638cb5b
@ -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
|
||||
}
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user