mirror of
https://github.com/bloeys/nmage.git
synced 2025-12-29 13:28:20 +00:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| c4853792a5 |
@ -66,8 +66,7 @@ func (i *ImguiInfo) Render(winWidth, winHeight float32, fbWidth, fbHeight int32)
|
|||||||
// DisplayMin is typically (0,0) for single viewport apps.
|
// DisplayMin is typically (0,0) for single viewport apps.
|
||||||
|
|
||||||
i.Mat.Bind()
|
i.Mat.Bind()
|
||||||
|
i.Mat.SetUnifInt32("Texture", 0)
|
||||||
gl.Uniform1i(gl.GetUniformLocation(i.Mat.ShaderProg.ID, gl.Str("Texture\x00")), 0)
|
|
||||||
|
|
||||||
//PERF: only update the ortho matrix on window resize
|
//PERF: only update the ortho matrix on window resize
|
||||||
orthoMat := gglm.Ortho(0, float32(winWidth), 0, float32(winHeight), 0, 20)
|
orthoMat := gglm.Ortho(0, float32(winWidth), 0, float32(winHeight), 0, 20)
|
||||||
|
|||||||
Reference in New Issue
Block a user