mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 03:08:54 +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) {
|
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 {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
@ -30,7 +30,7 @@ type Shader struct {
|
|||||||
p program
|
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{
|
s := &Shader{
|
||||||
id: id,
|
id: id,
|
||||||
graphics: graphics,
|
graphics: graphics,
|
||||||
|
Loading…
Reference in New Issue
Block a user